IPython notebook detailed installation tutorial, ipythonnotebook

Source: Internet
Author: User
Tags jupyter jupyter notebook

IPython notebook detailed installation tutorial, ipythonnotebook

IPython has been migrating a series of additional components, such as notebook, to jupyter for independent project running since 4.0, so that IPython focuses on interactive python. Let's look at the explanation on the official website:

"IPython is a growing project, with increasingly language-agnostic components. IPython 3.x was the last monolithic release of IPython, containing the notebook server, qtconsole, etc. as of IPython 4.0, the language-agnostic parts of the project: the notebook format, message protocol, qtconsole, notebook web application, etc. have moved to new projects under the name Jupyter. IPython itself is focused on interactive Python, part of which is providing a Python kernel for Jupyter."

From the above explanation, we can understand that IPython is independent from Jupyter and has become two projects in parallel development. This document describes how to install Ipython and Jupyter on ubuntu. in versions earlier than Version x, the installation process only requires a few simple commands and will not encounter any problems.

Method 1: Anoconda

Install the Anoconda integration package as instructed on the official website. You do not need to install all required tools, such as python, ipython, and jupyter. For more information, see the Anoconda installation method.

Method 2: Install python + ipython + jupyter independently

sudo apt-get install python
pip install ipythonpip install jupyter

NOTE: If python3 is used, change pip to pip3.

Enter

jupyter notebook

We do not recommend using the sudo or ipython notebook command.

Problems:

If you create a new notebook or open an existing ipynb file, you will encounter problems. When you open the ipynb file, a prompt is displayed.

An unknown error occurred while loading this notebook. This version can load notebook formats v4 or earlier. See the server log for details.

The terminal has an error message.

Unhandled error in API request......OperationalError: unable to open database file

By summarizing various solutions provided by netizens, two effective solutions are provided:

1. Locate the nbsignatures. db file and delete it. This file is generally located in ~ /. Local/share/jupyter folder.

2. Modify ~ /. Local/share/jupyter folder permissions.

As to why this problem occurs, it may be because jupyter contains bugs. We hope the problem can be solved in later versions.

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.