安装 Jupyter Notebook
prerequisite: Python
Installing Jupyter using Anaconda and conda
Alternative for experienced Python users: Installing Jupyter with pip
This information explains how to install the Jupyter Notebook and the IPython kernel.
Prerequisite: Python
While Jupyter runs code in many programming languages, Python is a requirement (Python 3.3 or greater, or Python 2.7) for installing the Jupyter Notebook.
We recommend using the Anaconda distribution to install Python and Jupyter. We’ll go through its installation in the next section.
Installing Jupyter using Anaconda and conda
For new users, we highly recommend installing Anaconda. Anaconda conveniently installs Python, the Jupyter Notebook, and other commonly used packages for scientific computing and data science.
Use the following installation steps:
Download Anaconda. We recommend downloading Anaconda’s latest Python 3 version (currently Python 3.5).
Install the version of Anaconda which you downloaded, following the instructions on the download page.
Congratulations, you have installed Jupyter Notebook. To run the notebook:
jupyter notebook
See Running the Notebook for more details.
Alternative for experienced Python users: Installing Jupyter with pip
Important
Jupyter installation requires Python 3.3 or greater, or Python 2.7. IPython 1.x, which included the parts that later became Jupyter, was the last version to support Python 3.2 and 2.6.
As an existing Python user, you may wish to install Jupyter using Python’s package manager, pip, instead of Anaconda.
First, ensure that you have the latest pip; older versions may have trouble with some dependencies:
pip3 install --upgrade pip
Then install the Jupyter Notebook using:
pip3 install jupyter
(Use pip if using legacy Python 2.)
Congratulations. You have installed Jupyter Notebook. See Running the Notebook for more details.
安装命令
jupyter notebook pip3 install --upgrade pip pip3 install jupyter
启动命令
jupyter notebook 或 ipython notebook
$ jupyter notebook [I 08:58:24.417 NotebookApp] Serving notebooks from local directory: /Users/catherine [I 08:58:24.417 NotebookApp] 0 active kernels [I 08:58:24.417 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/ [I 08:58:24.417 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
打开指定notebook
jupyter notebook notebook.ipynb
使用指定端口
jupyter notebook --port 9999
不打开浏览器
jupyter notebook --no-browser
获取帮助
jupyter notebook --help
哪些包我需要安装
1.install jupyter 2.jupyterhub 3.nbconvert 4.install a language kernel 5.customize the notebook for my needs