Configure Jupyter notebook remote access on Linux __linux

Source: Internet
Author: User
Tags sha1 jupyter jupyter notebook
Own machine installed too many things, a bit slow, would have liked all the things moved to the service, so if you can install a remote jupyter server, it will be very convenient to use.

Record your own installation steps

1. Install Ipython, Jupyter


Pip Install Ipython  

2. Generate Configuration file

[Root@50eb5057baac/]# Jupyter Notebook--generate-config  

3. Generate password


ROOT@50EB5057BAAC/]# Ipython  
Python 3.5.1 (default, OCT 2016, 21:37:19)   
Type ' copyright ', ' credits ' or ' Licens E ' for the more information  
IPython 6.2.1--a enhanced Interactive Python. Type '? ' for help.  
  
In [1]: From Notebook.auth import passwd in  
  
[2]: passwd ()  
Enter password:   
Verify password:   
out[2]: ' SHA1 : 43b95b731276:5d330ee6f6054613b3ab4cc59c5048ff7c70f549 ' in  
  
[3]:   


3. Modify the default configuration file

c.notebookapp.ip= ' * ' #设置访问notebook的ip, * represents all IP, where IP is set to be accessible C.notebookapp.password = U ' sha1:5df252f58b7f: Bf65d53125bb36c085162b3780377f66d73972d1 ' #填写刚刚生成的密文 c.notebookapp.open_browser = False # prevents notebook from automatically opening the browser at startup ( In Linux servers are generally SSH command line access, there is no graphical interface. So, start-up is also not what to use) C.notebookapp.port =8889 #指定访问的端口, the default is 8888.


4. Start Jupyter Notebook


[Root@346086094cbe/]# jupyter notebook--allow-root  
[W 17:17:04.106 Notebookapp] warning:the notebook server is List Ening on all IP addresses and not using encryption. This isn't recommended.  
[I 17:17:04.111 Notebookapp] Serving notebooks from local directory:/  
[i 17:17:04.112 Notebookapp] 0 active kernels  
[i 17:17:04.112 Notebookap P] The Jupyter notebook is running in:  
[I 17:17:04.112 notebookapp] Http://[all IP addresses on your system]:8889/
  
   [i 17:17:04.112 Notebookapp] Use control-c to the stop this server and shut the all kernels (twice to skip confirmation).  
  


5. Then you can typing your address http://yourip:8889/in the browser and see the following interface.


Installation Successful



6. Start the Jupyter Development window, click the New button in the upper right corner








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.