リモートアクセスの仮想マシンjupyterノート

サーバー上のJupyter構成は、telnetが私たちを支援します。

ステップ1:jupyterをインストールし、PIP3 jupyter(ここで使用するのpython3)をインストールします

第二ステップ:設定ファイルjupyterノート--generate-config設定を生成します

gz@ubuntu:~$ cd .jupyter/
gz@ubuntu:~/.jupyter$ ll
total 12
drwxr-xr-x  2 gz gz 4096 Sep  3 14:56 ./
drwxr-xr-x 36 gz gz 4096 Sep  4 11:28 ../
-rw-r--r--  1 gz gz   26 Sep  3 14:56 migrated
gz@ubuntu:~/.jupyter$ jupyter notebook --generate-config
jupyter: command not found
gz@ubuntu:~/.jupyter$ workon py3_face
(py3_face) gz@ubuntu:~/.jupyter$ jupyter notebook --generate-config
Writing default config to: /home/gz/.jupyter/jupyter_notebook_config.py
(py3_face) gz@ubuntu:~/.jupyter$ ll
total 48
drwxr-xr-x  2 gz gz  4096 Sep  4 11:35 ./
drwxr-xr-x 36 gz gz  4096 Sep  4 11:28 ../
-rw-rw-r--  1 gz gz 33341 Sep  4 11:35 jupyter_notebook_config.py
-rw-r--r--  1 gz gz    26 Sep  3 14:56 migrated
(py3_face) gz@ubuntu:~/.jupyter$ 

第三段階:キー開口のpython3を生成します

>>> from notebook.auth import passwd
>>> passwd()
Enter password: 
Verify password: 
'sha1:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
>>> 

設定ファイルを変更します。

vim + ~/.jupyter/jupyter_notebook_config.py

次のように追加する内容は次のとおりです。

c.NotebookApp.ip="192.168.xxx.xxx"
c.NotebookApp.password = u"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"   # 刚才复制的那个密文
c.NotebookApp.open_brower = False # # 禁止自动打开浏览器
c.NotebookApp.port = 8888 #随便指定一个端口

ここで注意:IPサーバーを記入すべきc.NotebookApp.ip =「104.222.1.1」、すべてのオンラインはc.NotebookApp.ipは=「*」、私はテストピットを輝くの多くを踏んされています。

ブラウザ開くための物理マシン
の入力を
http://192.168.xxx.xxx:8888/

以前に設定したパスワードを入力します。

おすすめ

転載: www.cnblogs.com/linusgau/p/11458183.html