Linux下安装ipython与jupyter

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

首先切换root用户:

su - root

pip3自动安装ipython

[root@hear ~]# 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
 

 

转载于:https://www.cnblogs.com/caodneg7/p/10058989.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值