Python之Idel利器jupyter notebook
jupyter?(之前的?ipython notebook?)于我的最大意義在于,讓學(xué)習(xí)進程和探索進程變得可累積,正如它的原先名字中的?notebook?所暗示的那樣,作為學(xué)習(xí)的記錄者,方便你隨時撿起學(xué)習(xí)的進度,增量式地前進
李笑來在《把時間當(dāng)做朋友》里說
相信積累的力量,本質(zhì)上就是相信復(fù)利的力量
每天進步一點,一年下來,最終的收獲就是365點,這是莎士比亞的算法--以為應(yīng)該用簡單加法計算;
實際上,如若真的每天進步一點點,一年下來,你的收獲最終很可能是?S = P*(1 + i)^365?,看你每天進步的是多少(i)(如果i變化你應(yīng)該用∑求和),看你起步時的實力如何(P)--這是夏洛克的算法,那可是指數(shù)級增長。
而我們知道,技術(shù)和知識的增長曲線往往以指數(shù)形式。所以常常,我們看到巨人隨手扔下的鵝軟石都是巨石,此處可以彈幕飄過一串名字: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.0rich output
from?IPython.display?import?HTML,?Image,?YouTubeVideofrom?IPython.display?import?Image Image(url='http://python.org/p_w_picpaths/python-logo.gif')Rich Output
Displaying rich HTML elements in the Notebook
書簽
%bookmark -l #結(jié)合cd使用,方便切換目錄
配置
ipython locate : 查看配置
jupyter notebook --generate-config : 如果沒有?~/.jupyter/jupyter_notebook_config.py?,則執(zhí)行這條命令,之后在此做配置
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 : 設(shè)置
文檔
Jupyter Documentation
ipynb
pelican-ipynb
github直接支持ipynb文件預(yù)覽
http://www.datahub.top/
IPython kernels for other languages
IPython kernels for other languages
我關(guān)注的
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?:書籍
轉(zhuǎn)載于:https://blog.51cto.com/tfbaby/1902939
總結(jié)
以上是生活随笔為你收集整理的Python之Idel利器jupyter notebook的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 欧元在哪些国家使用
- 下一篇: CSS 3 中的伪类选择器