Ipython Notebook is a browser-based Python data analysis tool that is very easy to use, extremely interactive and rich text presentation. Jupyter is an updated version of jupyter, which is easy to install and usually comes with the Anaconda installation package. Once installed, type in Jupyter Notebook and use it in your browser. However, it can only be accessed locally by default. If you want to install it on the server and then access it locally remotely, you need to do the following configuration:

(Mainly because my machine is too old to handle the training of the model, so I want to run it remotely and see it locally.)

  1. Logging in to the Remote Server

ssh root@ip:

  1. Generating a Configuration File

$jupyter notebook –generate-config 3. Open ipython and create a ciphertext password:

In [1]: from notebook.auth import passwd In [2]: passwd() Enter password: Verify password: Out[2]: ‘34769685 a7ccd3d08c84a18c63968a41f1140274 sha1: ce23d945972f:’ the resulting ciphertext ‘sha: ce… ‘Copy that

Exit the ipython

  1. Modify the default configuration file

$vim ~/.jupyter/jupyter_notebook_config.py

Modify as follows:

c.NotebookApp.ip=’*’ c.NotebookApp.password = u’sha:ce… Open_browser = False c. noteBookapp. port =8888 $jupyter notebook 6. Remote access at this time should be able to directly from the local browser to visit http://address_of_remote:8888 you can see the login interface of Jupyter.

  1. Establishing an SSH Channel

If the login fails, the server firewall Settings may be faulty. In this case, the simplest method is to establish a local SSH channel:

In the local terminal input SSH username @ address_of_remote – L127.0.0.1:1234:127.0.0.1:8888

Then you can directly access the remote jupyter at localhost:1234.