jupyter使用小结

jupyter(以前的ipython notebook)于个人最大意义在于,让学习进程和探索进程变得可累积,正如它的原先名字中的notebook所暗示的那样,做为学习的记录者,方便你随时捡起学习的进度,增量式地前进html

安装

Ubuntu :       pip install jupyterpython

 若是在windows下直接装anaconda吧!不想折腾的你在任何平台下均可以装anacondgit

使用

jupyter notebook 
jupyter notebook --no-browser
jupyter notebook --port 9999
jupyter notebook --help
jupyter notebook --ip=0.0.0.0 #外部访问

#经常使用:jupyter notebook --no-browser --port 5000 --ip=0.0.0.0

配置

  • ipython locate : 查看配置
  • jupyter notebook --generate-config : 若是没有~/.jupyter/jupyter_notebook_config.py,则执行这条命令,以后在此作配置

vim ~/.jupyter/jupyter_notebook_config.pygithub

# The directory to use for notebooks.这决定了jupyter启动目录
c.NotebookApp.notebook_dir = u'/path/to/your/notebooks'

文档

 

pip install -i http://mirrors.aliyun.com/pypi/simple jupyter  # pip 安装有时候很慢,使用国内阿里云。
或者建个文件 ~/.pip/pip.conf, 内容以下:vim

[global]
timeout = 1000
index-url = http://mirrors.aliyun.com/pypi/simple
[install]
trusted-host = mirrors.aliyun.com/pypiwindows

相关文章
相关标签/搜索