免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
遠程訪問服務器 jupyter notebook 的設置方法

本篇教程,介紹如何設置服務器的Jupyter,并遠程登陸, 就像rstudio-server一樣的。

1, 安裝jupyter notebook

這里推薦安裝Anaconda

wget https://repo.anaconda.com/archive/Anaconda3-2018.12-Linux-x86_64.sh
bash Anaconda3-2018.12-Linux-x86_64.sh

安裝好之后運行jupyter notebook, 不報錯, 說明安裝成功

jupyter notebook
[W 14:39:00.106 NotebookApp] .....

2, 配置文件

局域網登陸Jupyter notebook, 要有密碼, 類似RStudio-server

2.1, 生成配置文件

jupyter notebook --generate-config

如果之前有配置文件, 你可以選擇覆蓋, 從新進行設置: 選擇y

Overwrite /home/dengfei/.jupyter/jupyter_notebook_config.py with default config? [y/N]y
Writing default config to: /home/dengfei/.jupyter/jupyter_notebook_config.py

2.2, 編輯~/.jupyter/jupyter_notebook_config.py文件

vim ~/.jupyter/jupyter_notebook_config.py

設置如下:

  • 允許遠程訪問

  • 不使用本地瀏覽器打開

  • 允許所有IP訪問

c.NotebookApp.allow_remote_access = True
c.NotebookApp.open_browser = False
c.NotebookApp.ip='*'

把上面三行追加到配置文件的末尾:

3, 生成密碼

打開ipython

from notebook.auth import passwd
passwd()

輸入notebook的密碼即可.

4, 運行notebook命令, 查看是否可以登錄

(base) [dengfei@localhost ~]$ jupyter notebook
[W 14:54:28.145 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[I 14:54:28.147 NotebookApp] The port 8888 is already in use, trying another port.
[I 14:54:28.189 NotebookApp] JupyterLab extension loaded from /home/dengfei/anaconda3/lib/python3.6/site-packages/jupyterlab
[I 14:54:28.190 NotebookApp] JupyterLab application directory is /home/dengfei/anaconda3/share/jupyter/lab
[I 14:54:28.191 NotebookApp] Serving notebooks from local directory: /home/dengfei
[I 14:54:28.192 NotebookApp] The Jupyter Notebook is running at:
[I 14:54:28.192 NotebookApp] http://(localhost.localdomain or 127.0.0.1):8889/
[I 14:54:28.192 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

上面顯示, 8888這個端口已經占用, 這里使用8889端口.
因為本地服務器的IP為: 192.168.3.44, 所以我使用

192.168.3.44:8889

進行訪問

5, 輸入上步設置的密碼, 進行登錄.

在哪一個路徑打開的jupyter notebook,  notebook中就顯示當前路徑

本站僅提供存儲服務,所有內容均由用戶發(fā)布,如發(fā)現有害或侵權內容,請點擊舉報
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
anaconda的安裝使用
如何從0開始打造一個深度學習服務器?
linux下安裝Anaconda以及配置jupyter的遠程訪問
史上最詳細、最完全的jupyter notebook使用教程,Python使用者必備!——ipyth...
設置 jupyter notebook 可遠程訪問
如何修改Jupyter Notebook的默認路徑
更多類似文章 >>
生活服務
分享 收藏 導長圖 關注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點擊這里聯系客服!

聯系客服