Basic usage of iPython and notevook

Source: Internet
Author: User
This article describes the basic usage of iPython and notevook. 1 install Ipython

Pip install ipython

2 Basic Notebooke usage

Start ipython and use ipython

Start notebook to use ipython notebook

3 remote use of Ipython notebook configuration method 3.0 create remote service

Syntax: ipython profile create <你要创建的服务器名>

E.g .:

Ipython profile create myserver

In this case, the cursor will output the location of the generated file. remember this location.

3.1 configure openssl authentication

Openssl req-x509-nodes-days 365-newkey rsa: 1024-keyout mycert. pem-out mycert. pem

The generated sha value is output. remember to output the sha value.

To facilitate future use: in this case, you can move the mycert. pem certificate to the ipython notebook folder and put related items together.

Mv mycert. pem. ipython

3.2 modify the configuration file
C = get_config () # Kernel configc. IPKernelApp. pylab = 'line' # if you want ploader support always # Notebook configc. notebookApp. certfile = U'/home/XXX /. ipython/mycert. pem' ## authentication location c. notebookApp. ip = '*' c. notebookApp. open_browser = Falsec. notebookApp. password = u'sha1: xxxx' # sha value output for authentication # It's a good idea to put it on a known, fixed portc. notebookApp. port = 9999
3.3 restart ubuntu and enable ipython notebook server ipython notebook -- profile = nbserver3.4 to remotely connect to Ipython NoteBook. open a local browser and access the remote noteBook address. remember that the port number is 9999.

For more information about the basic usage of iPython and notevook, see The PHP Chinese website!

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.