Jupyter Notebook很好用,可是直接遠程在服務器上用體驗固然不如本地計算機好,那麼如何遠程訪問呢?python
pip install ipython pip install jypyter
生成配置文件vim
jupyter notebook --generate-config
打開ipython, 建立一個密文密碼瀏覽器
In [1]: from notebook.auth import passwd In [2]: passwd() Enter password: Verify password: Out[2]: 'sha1:ce23d945972f:34769685a7ccd3d08c84a18c63968a41f1140274'
把生成的密文‘sha:ce…’複製下來服務器
vim ~/.jupyter/jupyter_notebook_config.py
進行以下修改:spa
c.NotebookApp.ip='*' # 就是設置全部ip皆可訪問 c.NotebookApp.password = u'sha:ce...剛纔複製的那個密文' c.NotebookApp.open_browser = False # 禁止自動打開瀏覽器 c.NotebookApp.port =8888 #隨便指定一個端口
jupyter notebook
此時應該能夠直接從本地瀏覽器直接訪問http://address_of_remote:8888就能夠看到jupyter的登錄界面。.net
參考: 遠程訪問jupyter notebook3d