jmton 发表于 2018-8-13 06:21:32

Python之Idel利器jupyter notebook

  jupyter (之前的 ipython notebook )于我的最大意义在于,让学习进程和探索进程变得可累积,正如它的原先名字中的 notebook 所暗示的那样,作为学习的记录者,方便你随时捡起学习的进度,增量式地前进
  李笑来在《把时间当做朋友》里说
  相信积累的力量,本质上就是相信复利的力量
  每天进步一点,一年下来,最终的收获就是365点,这是莎士比亚的算法--以为应该用简单加法计算;
  实际上,如若真的每天进步一点点,一年下来,你的收获最终很可能是 S = P*(1 + i)^365 ,看你每天进步的是多少(i)(如果i变化你应该用∑求和),看你起步时的实力如何(P)--这是夏洛克的算法,那可是指数级增长。
  而我们知道,技术和知识的增长曲线往往以指数形式。所以常常,我们看到巨人随手扔下的鹅软石都是巨石,此处可以弹幕飘过一串名字:John McCarthy、Kenneth Lane Thompson、Linus Torvalds
介绍

[*]  IPython Notebook: 交互计算新时代
[*]  Nature:Ipython 交互笔记 共享你的思想
安装
  pip install jupyter
  如果在windows下直接装anaconda吧!不想折腾的你在任何平台下都可以装anaconda
使用
jupyter notebook  
jupyter notebook --no-browserjupyter notebook --port 9999jupyter notebook --helpjupyter notebook --ip=0.0.0.0 #外部访问#常用:jupyter notebook --no-browser --port 5000 --ip=0.0.0.0
rich output
from IPython.display import HTML, Image, YouTubeVideofrom IPython.display import Image  
Image(url='http://python.org/images/python-logo.gif')

[*]  Rich Output
[*]  Displaying rich HTML elements in the Notebook
书签
  %bookmark -l #结合cd使用,方便切换目录
配置

[*]  ipython locate : 查看配置
[*]  jupyter notebook --generate-config : 如果没有 ~/.jupyter/jupyter_notebook_config.py ,则执行这条命令,之后在此做配置
  vim ~/.jupyter/jupyter_notebook_config.py
# The directory to use for notebooks.这决定了jupyter启动目录c.NotebookApp.notebook_dir = u'/path/to/your/notebooks'

[*]  绑定vim jupyter-vim-binding
[*]  主题: jupyter-themer
[*]  拓展: IPython-notebook-extensions
[*]

[*]  http://127.0.0.1:8888/nbextensions : 设置

文档

[*]  Jupyter Documentation
ipynb

[*]  pelican-ipynb
[*]  github直接支持ipynb文件预览
[*]  http://www.datahub.top/
IPython kernels for other languages

[*]  IPython kernels for other languages
我关注的

[*]  igo : 会报错
[*]  bash_kernel
[*]  hy_kernel
[*]  ijavascript
[*]  同时支持pyhton2,python3
[*]

[*]  source ~/py3/bin/activate.fish
[*]  pip3 install jupyter"
[*]  ipython3 kernelspec install-self

资源汇总

[*]  A gallery of interesting IPython Notebooks
[*]  python minibooks :书籍
页: [1]
查看完整版本: Python之Idel利器jupyter notebook