Jupyter安装及运行

时间:2023-03-09 19:50:30
Jupyter安装及运行

一、安装(来自http://jupyter.org/install

  • Ctrl+Alt+T(Manjaro系统),打开控制台,su进入root权限
  • 输入如下命令:
 python3 -m pip install --upgrade pip
python3 -m pip install jupyter

Jupyter安装及运行

二、启动Jupyter

  • 控制台下jupyter notebok,使用的时候报错

Jupyter安装及运行

jupyter notebook --generate-config --allow-root 
  • 修改配置文件(输入i以后就可以正常进行编辑)
vim /root/.jupyter/jupyter_notebook_config.py
  • 修改这一行
#c.NotebookApp.allow_root = False

修改为

c.NotebookApp.allow_root = True
  • 保存退出:按Esc,而后输入
:wq
  • 而后即可正常运行
jupyter notebook