0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

備忘録: Jupyter notebookインストールおよび設定

Posted at

目的

下記サイトのPyGWalkerを試してみるために、Jupyter notebookのインストールおよび環境設定を行ったメモ

勉強用の外部公開していないサーバなので、パスワード、トークンなしでログインできるようにした。
肝心のPyGWalkerの動作確認はまた別途行う。

環境

RedHat Enterprise Linux 8.7
Python 3.8

手順

1. Jupyter インストール

# pip3.8 install jupyter

2. Jupyterの定義ファイルを作成する

$ cd 
$ jupyter notebook --generate-config
$ vi .jupyter/jupyter_notebook_config.py
jupyter_notebook_config.py
- # c.NotebookApp.ip = 'localhost'
+ c.NotebookApp.ip = '192.168.1.106'

- # c.NotebookApp.open_browser = True
+ c.NotebookApp.open_browser = False

- # c.NotebookApp.password = ''
+ c.NotebookApp.password = ''

- # c.NotebookApp.port = 8888
+ c.NotebookApp.port = 8888

- # c.NotebookApp.token = '<generated>'
+ c.NotebookApp.token = ''

※token, passwordを空欄にすることで、トークン、パスワードが不要となる

デフォルトポート:8888にしているので、必要に応じてポートを変更するか、firewall-cmdでポートを開放する

3. Jupyter notebook起動

$ jupyter notebook

参考

0
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?