ipython notebook是一个基于浏览器的python数据分析工具,具有极强的交互方式和富文本的展示效果。jupyter是它的升级版,它的安装也非常方便,一般Anaconda安装包中会自带。安装好以后直接输入jupyter notebook便可以在浏览器中使用。但是它默认只能在本地访问,如果想把它安装在服务器上,然后在本地远程访问,则需要进行如下配置:
一、安装ipython, jupyter
pip install ipython
pip install jupyter
二、生成配置文件
jupyter notebook --generate-config
三、生成密码
ipython
Python 3.5.1 (default, Oct 21 2016, 21:37:19)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.
from notebook.auth import passwd
passwd()
显示:
Enter password:
Verify password: