Jupyter Configuration and Remote login

Source: Internet
Author: User
Tags sha1 jupyter jupyter notebook
jupyter configuration and remote login

Anaconda's jupyter usage is becoming more common, but the default directory is not what everyone wants, and this section describes the Jupyter customization configuration and how to log on remotely to Jupyter notebook. 1 jupyter Custom Configuration

Jupyter no personalization profiles are available by default for both 2 and 3, we need to manually generate Jupyter notebook--generate-config using the command. Depending on where the system is built, the default is in the user directory, the name is jupyter_notebook_config.py, and almost all configuration is done in this file. 1.1 Initialization Directory settings

Search for C in the file. Notebookapp.notebook_dir, remove the comment #, and change the following directory for the location you want, such as below.

# # The directory to use for notebooks and kernels.
C.notebookapp.notebook_dir = U ' d:\\projects\\jupyterprojects '

# 1.2 Change the default port number

Search for C in the file. Notebookapp.port make changes. 1.3 Setting whether the browser is automatically opened (set when telnet)

Search for C in the file. Notebookapp.open_browser, set to False. 2 remote Login Jupyter

Sometimes you need to connect to a remote server, or when you don't have a graphical interface, you can use another computer to telnet to the jupyter.

First open Python or Ipython, and use the following code to create a ciphertext password:

From Notebook.auth import passwd
passwd ()
# At this point, you need to enter the password two times (one set, one confirmation), and then generate the SHA1 ciphertext and copy it.
# Enter password:
# Verify password:
# sha1:b11ba7ae862e:6eeb922ef6b770e4381c90922b2341f7b30a7177

Then modify the configuration file as follows:

c.notebookapp.ip= ' * ' # allows all IP access
c.notebookapp.password = U ' SHA1: ... The ciphertext '
c.notebookapp.open_browser = False # Just copied is open browser
c.notebookapp.port =8888 #指定端口

Start with Jupyter notebook, and then through http://address_of_remote:8888 remote access, the login interface needs to enter a password for the setting.

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.