0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

jupyter notebook初期設定

Posted at

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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?