Configure the remote access Jupyter notebook in the Linux configuration command

Source: Internet
Author: User
Tags sha1 jupyter jupyter notebook

Ipython Notebook is a browser-based Python data analysis tool that is easy to use and has a very strong interaction and rich text presentation. Jupyter is its upgraded version, its installation is also very convenient, General Anaconda installation package will be brought in. The direct input jupyter notebook can be used in the browser after installation. However, it is only accessible locally, and if you want to install it on a server and then remotely access it locally, you need to configure the following:

1. Log in to the remote server

2. Build the configuration file
$jupyter Notebook--generate-config

3. Generate a password

Open ipython , create a password for the ciphertext:

In [1]: From Notebook.auth import Passwdin [2]: passwd () Enter password:verify password:out[2]: ' sha1:ce23d945972f:347696 85a7ccd3d08c84a18c63968a41f1140274 '

If you cannot open Ipython here, you can use the command line directly

[Email protected]_admin:~# python-c "Import ipython;print IPython.lib.passwd ()" [Email protected]_admin:~# Enter Password:[email protected]_admin:~# Verify password:[email protected]_admin:~# SHA1:B86E933199AD: a02e9592e59723da722. #这是我的密码的hash值, after the paragraph is deleted, your password should have different results

Copy the generated ciphertext ' sha:ce ... '

4. Modify the default configuration file

$vim ~/.jupyter/jupyter_notebook_config.py# Note that catalogs are based on their own actual determination

Make the following changes:

c.notebookapp.ip= ' * ' C.notebookapp.password = U ' Sha:ce ... The cipher that was just copied ' c.notebookapp.open_browser = Falsec.NotebookApp.port =8888 #随便指定一个端口
5. Start Jupyter Notebook:
$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.

7. Create an SSH Channel

If the login fails, it may be a problem with the server firewall setting, the simplest way is to establish an SSH channel locally:
Enter ssh [email protected]_of_remote -L127.0.0.1:1234:127.0.0.1:8888 in the local terminal
can be localhost:1234 accessed directly from the remote Jupyter.


This article is from the "12796054" blog, please be sure to keep this source http://12806054.blog.51cto.com/12796054/1919123

Configure the remote access Jupyter notebook in the Linux configuration command

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.