Jupyter notebook is very convenient, want to build one on the server, but not access.
(a) The first is the installation of Jupyter notebook,
Pip Install Jupyter
If the PIP installation is not correct and the SQLite library is missing, install
sudo apt-get install Libsqlite3-dev
Then you need to "recompile python" and install it via PIP (python3.x does not need to install pysqlite)
Pip Install Pysqlite
(ii) Start-up Jupyter
Jupyter Notebook
In fact, the local if there is browser, you can enter access, but no, so need remote access: http://ip:8888, found not access
(iii) Configure remote access Jupyter
1 First input Ipython to generate secret key
$ Ipython from
notebook.auth import passwd
passwd ()
Setting a password will generate a SHA1 secret key, as shown in the following figure:
2 to generate jupyter config file
$ jupyter Notebook--generate-config
The configuration file is generated at the ~/.jupyter/jupyter_notebook_config.py
3 Modify configuration file: ~/.jupyter/jupyter_notebook_config.py
$vim ~/.jupyter/jupyter_notebook_config.py
Add the following, where SHA1 the secret key is the string that is generated above
c.notebookapp.ip= ' * '
c.notebookapp.password = U ' sha1:f9030dd55bce:75fd7bbaba41be6ff5ac2e811b62354ab55b1f63 '
c.notebookapp.open_browser = False
c.notebookapp.port =8888
As shown in figure:
Save exit.
4) Start Jupyter
$jupyter Notebook
On the remote computer, open the browser and enter:
http://your-server-ip:8888
Need to enter the password, is the above set the password, input can
5) OK.