|
本篇教程,介紹如何設置服務器的 1, 安裝jupyter notebook這里推薦安裝Anaconda wget https://repo./archive/Anaconda3-2018.12-Linux-x86_64.sh安裝好之后運行jupyter notebook, 不報錯, 說明安裝成功 jupyter notebook2, 配置文件局域網(wǎng)登陸Jupyter notebook, 要有密碼, 類似RStudio-server 2.1, 生成配置文件 jupyter notebook --generate-config如果之前有配置文件, 你可以選擇覆蓋, 從新進行設置: 選擇y Overwrite /home/dengfei/.jupyter/jupyter_notebook_config.py with default config? [y/N]y2.2, 編輯~/.jupyter/jupyter_notebook_config.py文件 vim ~/.jupyter/jupyter_notebook_config.py設置如下:
c.NotebookApp.allow_remote_access = True把上面三行追加到配置文件的末尾: 3, 生成密碼打開ipython from notebook.auth import passwd 輸入notebook的密碼即可. 4, 運行notebook命令, 查看是否可以登錄(base) [dengfei@localhost ~]$ jupyter notebook上面顯示, 8888這個端口已經(jīng)占用, 這里使用8889端口. 192.168.3.44:8889進行訪問 5, 輸入上步設置的密碼, 進行登錄.在哪一個路徑打開的jupyter notebook, notebook中就顯示當前路徑 |
|
|
來自: 育種數(shù)據(jù)分析 > 《待分類》