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.