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.