본문 바로가기
인프라/환경설정

주피터 랩 브라우저 세팅

by 물고기고기 2022. 9. 19.

주피터 노트북같은 경우엔 브라우저 바꾸는 법이 많이 나와있는데 주피터랩같은 경우엔 따로 없는 것 같아서 아카이빙

 

아나콘다 프롬프트에 이렇게 치면 주피터 랩이 실행된다 (참고로 커널에서 작업하는거라 그런건지 프롬프트를 관리자 권한으로 실행해야한다.)

jupyter-lab

 

jupyter notebook --generate-config

1. 해당 명령어로 config 파일을 생성해준다.

사용자 -> ~/.jupyter/jupyter_notebook_config.py

이런 경로로 따라가다보면 config파일이 존재하는데

 

2. 해당 파일을 메모장이나 편집기로 열여준뒤에 아래 프로퍼티를

c.NotebookApp.browser = 'google-chrome'

이렇게 바꿔준다.

c.ServerApp.browser = 'google-chrome'

만약 설정이 안돼있으면 추가해주면 됨

 

3. 파일 명도 이렇게 바꿔주면 된다.

jupyter_notebook_config.py -> jupyter_server_config.py.

jupyter_notebook_config.py
jupyter_server_config.py.

 

주피터랩 3.0 부터는 사용하는 서버가 바뀌어서 config 파일도 바꿔줘야한다고 한다.


https://github.com/jupyterlab/jupyterlab/issues/9565

 

Jupyter Lab doesn't open in the specified browser · Issue #9565 · jupyterlab/jupyterlab

Ubuntu 20.10 Jupyterlab 3.0.1 I'm specifying Jupyter NB to open in Google Chrome in the /home/joseph/.jupyter/jupyter_notebook_config.py ## Specify what command to use to invoke a web browser w...

github.com

https://stackoverflow.com/questions/47772157/how-to-change-the-default-browser-used-by-jupyter-notebook-in-windows

 

How to change the default browser used by jupyter notebook in windows

I'm on a windows machine without admin right and I would like to run jupyter on chrome, while the default browser is another. I have a local installation of the Anaconda distribution and my first ...

stackoverflow.com

https://jupyter-server.readthedocs.io/en/stable/operators/migrate-from-nbserver.html

 

Migrating from Notebook Server — Jupyter Server documentation

Migrating from Notebook Server To migrate from notebook server to plain jupyter server, follow these steps: Rename your jupyter_notebook_config.py file to jupyter_server_config.py. Rename all c.NotebookApp traits to c.ServerApp. For example if you have the

jupyter-server.readthedocs.io

 

댓글