Abstract: Build Python3 Jupyter notebook.
After activating Python3, enter the python interactive environment
1. Log in to remote server 2. Build configuration file
1. $jupyter Notebook--generate-config
3. Generate a password
Open ipython
, create a password for the ciphertext:
1. In [1]: from Notebook.auth import passwd
2. In [2]: passwd ()
5. out[2]: ' sha1:fa0dde171852:7afe4911d125a73f091298be12aa0c199e3b9350 '
Copy the generated ciphertext ' sha:ce ... '
4. Modify the default configuration file
$vim ~/.jupyter/jupyter_notebook_config.py
Make the following changes:
1. c.notebookapp.ip= ' * ' #所有ip都可以访问
2. C.notebookapp.password=u ' sha1:fa0dde171852:7afe4911d125a73f091298be12aa0c199e3b9350 '
3. C.notebookapp.open_browser = False
4. C.notebookapp.port =8888 #随便指定一个端口
5. Start Jupyter Notebook:
1. $jupyter Notebook
6. Remote Access
You should be able to http://address_of_remote:8888
see Jupyter's Landing screen directly from your local browser.
will prompt for a password, which is the password generated in the second step
Our code is 12345678.
Build the Python3 jupyter notebook server