Ipython, starting from 4.0, migrated a series of add-ons, such as notebook, to jupyter in order to run the project independently, allowing Ipython to focus on the functionality of interactive Python. Let's take a look at the official online explanation:
"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. has moved to new projects under the name Jupyter. IPython itself is focused on interactive python, part of which are providing a Python kernel for Jupyter. "
From the above explanations we can learn that Ipython from this independence, and Jupyter become a parallel development of two projects. This article mainly introduces the installation process of Ipython and jupyter on Ubuntu, if it is a version prior to Ipython 3.x, the installation process requires just a few simple commands and does not encounter any problems.
Method One: Anoconda
In accordance with the official website method, install the Anoconda integration package, then all the required tools do not need to install additional, such as Python,ipython,jupyter. Specific methods refer to the Anoconda installation method, which is no longer specifically described here.
Method Two: Separate installation Python+ipython+jupyter
sudo apt-get install python
Pip Install Ipythonpip Install Jupyter
Note that if you are using Python3, change the PIP to PIP3.
After the installation is complete, the terminal input
Jupyter Notebook
It is not recommended to use the sudo or Ipython notebook command.
Problems encountered:
Once opened, you will encounter problems if you create a new notebook or open an existing IPYNB file. When you open the Ipynb file, you will be prompted
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 will have a corresponding error message
Unhandled error in API request ... operationalerror:unable to open database file
By summarizing the various programs of netizens, we now offer two effective solutions:
1. Locate the nbsignatures.db file and delete it, which is typically located in the ~/.local/share/jupyter folder.
2. Modify the permissions for the ~/.local/share/jupyter folder.
As to why this problem occurs, it may be due to the implied bug in Jupyter, I hope that the subsequent version can solve the problem.
IPython Notebook Detailed Installation Tutorials