jupyter (之前的 ipython notebook
)於我的最大意義在於,讓學習進程和探索進程變得可累積,正如它的原先名字中的 notebook
所暗示的那樣,作爲學習的記錄者,方便你隨時撿起學習的進度,增量式地前進
李笑來在《把時間當做朋友》裏說
相信積累的力量,本質上就是相信複利的力量
每天進步一點,一年下來,最終的收穫就是365點,這是莎士比亞的算法--以爲應該用簡單加法計算;
實際上,如若真的每天進步一點點,一年下來,你的收穫最終很可能是 S = P*(1 + i)^365
,看你每天進步的是多少(i)(如果i變化你應該用∑求和),看你起步時的實力如何(P)--這是夏洛克的算法,那可是指數級增長。
而我們知道,技術和知識的增長曲線往往以指數形式。所以常常,我們看到巨人隨手扔下的鵝軟石都是巨石,此處可以彈幕飄過一串名字:John McCarthy、Kenneth Lane Thompson、Linus Torvalds
介紹
安裝
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/p_w_picpaths/python-logo.gif')
書籤
%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
http://127.0.0.1:8888/nbextensions : 設置
文檔
ipynb
github直接支持ipynb文件預覽
IPython kernels for other languages
我關注的
igo : 會報錯
同時支持pyhton2,python3
source ~/py3/bin/activate.fish
pip3 install jupyter"
ipython3 kernelspec install-self