4: 2020-08-15 (Sat) 22:20:08 iseki |
5: 2020-08-16 (Sun) 18:18:23 iseki |
| + | * Jupyter [#ud5a4e75] |
| ** Jupyter Notebook [#d5ab1922] | | ** Jupyter Notebook [#d5ab1922] |
| + | |
| *** With Anaconda [#wf6eba52] | | *** With Anaconda [#wf6eba52] |
| - Python(pip) 環境で入れる方法と [[Anaconda]] 環境で入れる方法がある. | | - Python(pip) 環境で入れる方法と [[Anaconda]] 環境で入れる方法がある. |
| #br | | #br |
| | | |
- | *** Jupyter NoteBook [#q6ca7076] | + | *** Install [#nb5b4afb] |
| + | INSTALL |
| (base) conda install -c conda-forge notebook | | (base) conda install -c conda-forge notebook |
| #br | | #br |
- | *** JupyterLab [#b387f244] | |
- | - Jupyter Notebookの後継. | |
- | - WebアプリケーションによるIDE | |
| | | |
| + | ** JupyterLab [#b387f244] |
| + | - Jupyter Notebookの後継. WebアプリケーションによるIDE |
| + | - ''jupyterhub_config.py'' で ''c.Spawner.default_url = '/lab''' とする |
| + | |
| + | Install |
| (base) conda install -c conda-forge jupyterlab -y | | (base) conda install -c conda-forge jupyterlab -y |
| + | |
| #br | | #br |
| | | |
- | *** JupyterHub [#mb71944e] | + | ** JupyterHub [#mb71944e] |
| - Jupyterサーバー(ユーザ認証機能つき) | | - Jupyterサーバー(ユーザ認証機能つき) |
| - https://horomary.hatenablog.com/entry/2019/11/09/181614 | | - https://horomary.hatenablog.com/entry/2019/11/09/181614 |
| #br | | #br |
| | | |
- | **** INSTALL [#nfb5f43c] | + | *** INSTALL [#nfb5f43c] |
| (base) conda create -n jupyterhub python=3.8 -y | | (base) conda create -n jupyterhub python=3.8 -y |
| (base) conda activate jupyterhub | | (base) conda activate jupyterhub |
| #br | | #br |
| | | |
- | **** [[Docker]] が必要 [#c1353e30] | + | *** 設定 [#idb49705] |
| + | - jupyterhub --generate-config を実行すると カレントディレクトリに設定ファイル ''jupyterhub_config.py'' が生成される. |
| + | - 個人的には jupyterhub が /usr/local 以下にある場合は /usr/local/etc/jupyterhub 以下に置く. |
| #br | | #br |
- | *** Trouble Shooting [#rf83821d] | + | |
- | **** JupyterHub: PAM使用時に login して logoutし,もう一回 login するとPAMの認証エラーになる. [#cec1cefc] | + | *** 実行 [#a826d7f6] |
| + | (base) conda activate jupyterhub |
| + | (jupyterhub) jupyterhub --no-ssl -f /usr/local/etc/jupyterhub/jupyterhub_config.py |
| + | #br |
| + | |
| + | *** 使用ポート [#me192c34] |
| + | - 8000 |
| + | - 8081 |
| + | - 8888 (Docker用?) |
| + | #br |
| + | |
| + | *** jovyan って誰? [#w4a21247] |
| + | - Docker を使用すると,作業ディレクトリが /home/jovyan/work 固定なのだが? |
| + | - c.DockerSpawner.notebook_dir 辺りをいじっても変化しない? |
| + | #br |
| + | |
| + | ** Trouble Shooting [#rf83821d] |
| + | |
| + | *** JupyterHub: PAM使用時に 再login するとPAMの認証エラーになる. [#cec1cefc] |
| + | - バグだろ. |
| - Resolve: jupyterhub_config.py に ''c.PAMAuthenticator.open_sessions = False'' を追加する | | - Resolve: jupyterhub_config.py に ''c.PAMAuthenticator.open_sessions = False'' を追加する |
| - see: https://github.com/jupyterhub/jupyterhub/issues/486 | | - see: https://github.com/jupyterhub/jupyterhub/issues/486 |
| #br | | #br |