Jupyter Notebook Remote Access Problem resolution __ Installation Jupyter

Source: Internet
Author: User
Tags sha1 jupyter jupyter notebook

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.