[Python] jupyter lab 환경 설정
jupyter lab 외부 접속 허용 및 테마 적용
설치Permalink
pip install jupyterlab jupyterlab_darkside_ui jupyterlab_legos_ui
config 파일 추가Permalink
jupyter lab --generate-config
패스워드 암호화Permalink
from jupyter_server.auth import passwd
passwd(algorithm='sha256')
# output
# Enter password:
# Verify password:
# 'sha256:...'
config 파일 수정Permalink
c.ServerApp.allow_origin = '*'
c.ServerApp.ip = '0.0.0.0'
c.ServerApp.open_browser = False
c.ServerApp.password = u'sha256:...'
c.ServerApp.port = 8888
c.ServerApp.root_dir = ''
혹시 ubuntu에서 포트가 막혀있다면 : ubuntu 포트 허용
ipywidgets interact UI가 보이지 않을 때Permalink
jupyter nbextension enable --sys-prefix --py widgetsnbextension
셀에서 코드 라인 넘버 보이기Permalink
shift
+ L