如何在 Ubuntu 15.10 中 install/run Jupyter?
How to install/run Jupyter in Ubuntu 15.10?
我已经安装了 python3/ipython3(和笔记本)。所以我 followed the instructions,我做到了:
$ pip3 install jupyter
而且好像成功了。但是似乎没有安装任何东西(至少不在我的路径中):
$ jupyter
jupyter: command not found
$ python3 jupyter
python3: can't open file 'jupyter': [Errno 2] No such file or directory
$ ipython3 jupyter
[TerminalIPythonApp] WARNING | File not found: 'jupyter'
$ ipython jupyter
[TerminalIPythonApp] WARNING | File not found: u'jupyter'
抱歉,我对 python 安装细节一窍不通,我当然遗漏了一些明显的东西,但我在文档中找不到它。
任何帮助将不胜感激!! :)
尝试调试安装 Golang 内核 (gophernotes) 的另一个问题,我发现它安装在 ${HOME}/.local/bin/jupyter
。
问题已解决。
Jupyter Notebook 正在取代 IPython Notebook,成为最常用的基于 Web 的交互式计算环境,用于创建 IPython 笔记本。
从 Ubuntu 17.04 开始,Jupyter Notebook 可以直接从默认的 Ubuntu 存储库安装(sudo apt install jupyter-notebook jupyter-core python-ipykernel
in Ubuntu 17.04 和 17.10)。 python-ipykernel 是 Jupyter Notebook 中 运行ning Python 2.x 程序所必需的,否则仅支持 Python 3.x.
在 Ubuntu 20.04 及更高版本中安装 Jupyter Notebook
打开终端并输入:
sudo apt install jupyter-notebook jupyter
在 Ubuntu 18.04-19.10
中安装 Jupyter Notebook
打开终端并输入:
sudo apt install python3-notebook jupyter jupyter-core python-ipykernel
python-ipykernel 是 Jupyter Notebook 中 运行ning Python 2.x 程序所必需的,否则仅支持 Python 3.x .
要启动笔记本服务器 运行 以下命令:
jupyter notebook
您应该会在网络浏览器中看到 Jupyter Notebook 打开。
在Ubuntu 14.04→16.10
中安装Jupyter Notebook
以下说明用于在 Ubuntu 14.04→16.10 中安装 Jupyter Notebook。 Ubuntu中Python的默认版本可以正常使用,但是pip需要更新到最新版本。
sudo apt update
sudo apt -y install python-pip python-dev
sudo -H pip install --upgrade pip
sudo apt -y install ipython ipython-notebook
pip install --user jupyter
要启动笔记本服务器 运行 以下命令:
jupyter notebook
您应该会在网络浏览器中看到 Jupyter Notebook 打开。
如果您还安装了 python-matplotlib,则在当前笔记本中启用绘图的第一行代码是 %matplotlib inline
我已经安装了 python3/ipython3(和笔记本)。所以我 followed the instructions,我做到了:
$ pip3 install jupyter
而且好像成功了。但是似乎没有安装任何东西(至少不在我的路径中):
$ jupyter
jupyter: command not found
$ python3 jupyter
python3: can't open file 'jupyter': [Errno 2] No such file or directory
$ ipython3 jupyter
[TerminalIPythonApp] WARNING | File not found: 'jupyter'
$ ipython jupyter
[TerminalIPythonApp] WARNING | File not found: u'jupyter'
抱歉,我对 python 安装细节一窍不通,我当然遗漏了一些明显的东西,但我在文档中找不到它。
任何帮助将不胜感激!! :)
尝试调试安装 Golang 内核 (gophernotes) 的另一个问题,我发现它安装在 ${HOME}/.local/bin/jupyter
。
问题已解决。
Jupyter Notebook 正在取代 IPython Notebook,成为最常用的基于 Web 的交互式计算环境,用于创建 IPython 笔记本。
从 Ubuntu 17.04 开始,Jupyter Notebook 可以直接从默认的 Ubuntu 存储库安装(sudo apt install jupyter-notebook jupyter-core python-ipykernel
in Ubuntu 17.04 和 17.10)。 python-ipykernel 是 Jupyter Notebook 中 运行ning Python 2.x 程序所必需的,否则仅支持 Python 3.x.
在 Ubuntu 20.04 及更高版本中安装 Jupyter Notebook
打开终端并输入:
sudo apt install jupyter-notebook jupyter
在 Ubuntu 18.04-19.10
中安装 Jupyter Notebook打开终端并输入:
sudo apt install python3-notebook jupyter jupyter-core python-ipykernel
python-ipykernel 是 Jupyter Notebook 中 运行ning Python 2.x 程序所必需的,否则仅支持 Python 3.x .
要启动笔记本服务器 运行 以下命令:
jupyter notebook
您应该会在网络浏览器中看到 Jupyter Notebook 打开。
在Ubuntu 14.04→16.10
中安装Jupyter Notebook以下说明用于在 Ubuntu 14.04→16.10 中安装 Jupyter Notebook。 Ubuntu中Python的默认版本可以正常使用,但是pip需要更新到最新版本。
sudo apt update
sudo apt -y install python-pip python-dev
sudo -H pip install --upgrade pip
sudo apt -y install ipython ipython-notebook
pip install --user jupyter
要启动笔记本服务器 运行 以下命令:
jupyter notebook
您应该会在网络浏览器中看到 Jupyter Notebook 打开。
如果您还安装了 python-matplotlib,则在当前笔记本中启用绘图的第一行代码是 %matplotlib inline