summary
- open browser from remote client
- set password
generate config file
jupyter notebook --generate-config
.jupyter/jupyter_notebook_config.py ができる。これを編集する。
browserをサーバ上で開かない
.jupyter/jupyter_notebook_config.py
## Whether to open in a browser after starting.
# See also: ExtensionApp.open_browser
c.JupyterNotebookApp.open_browser = False
source ip
.jupyter/jupyter_notebook_config.py
## The IP address the Jupyter server will listen on.
# Default: 'localhost'
c.ServerApp.ip = '0.0.0.0'
接続元端末を書く。
特に制限しない場合は0.0.0.0のままにする
server port
.jupyter/jupyter_notebook_config.py
## The port the server will listen on (env: JUPYTER_PORT).
# Default: 0
c.ServerApp.port = 8080
サーバのポートを指定する
directory
.jupyter/jupyter_notebook_config.py
## The directory to use for notebooks and kernels.
# Default: ''
c.ServerApp.root_dir = '/path/to/target'
起動時に表示したいディレクトリがあればここに設定する
password
jupyter notebook password
jupyter notebookを起動する
jupyter notebook
これでurlからtokenを省略できるようになる
起動後の接続先はこんな形
http://{server ip}:8080/tree