Linux下安装ipython与jupyter

Posted Hear7

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux下安装ipython与jupyter相关的知识,希望对你有一定的参考价值。

IPython从Python发展而来,更倾向于科学计算。互联网数据分析更喜欢用。

首先切换root用户:

su - root

pip3自动安装ipython

[[email protected] ~]# ipython
Python 3.6.7 (default, Dec 3 2018, 10:45:52)
Type ‘copyright‘, ‘credits‘ or ‘license‘ for more information
IPython 7.2.0 -- An enhanced Interactive Python. Type ‘?‘ for help.

In [1]: 1
Out[1]: 1

In [2]:

 安装jupyter notebook

 
1.激活虚拟环境venv
2. pip3 install ipython
  pip3 install jupyter
3. ipython进入
  from IPython.lib import passwd
  passwd()#生成密码
4.jupyter notebook --generate-config --allow-root
5. vim ~/.jupyter/jupyter_notebook_config.py

    修改如下配置一致即可,去掉注释符 # 才能读取代码

    c.NotebookApp.ip = ‘建议写当前linux机器的ip地址‘
    c.NotebookApp.open_browser = False
    c.NotebookApp.port = 8000

6.jupyter notebook  --allow-root  #启动notebook
 

 

以上是关于Linux下安装ipython与jupyter的主要内容,如果未能解决你的问题,请参考以下文章

Mac下安装ipython与jupyter

Linux下安装jupyter

jupyter 和 ipython的区别

ipython和jupyter安装配置

Windows下基于Python3安装Ipython Notebook(即Jupyter)。python –m pip install XXX

jupyter环境变量怎么设定