V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
luw2007

IPython Notebook 分享代码 is cool http://nbviewer.ipython.org

  •  
  •   luw2007 · Jan 15, 2015 · 4053 views
    This topic created in 4124 days ago, the information mentioned may be changed or developed.
    IPython Notebook写完之后, 分享很困难.
    然后现在只要通过保存 到gist 上, 然后通过http://nbviewer.ipython.org/<gist number> 分享, 就可以把本地创建的ipython 分享到网上, 不需要搭建ipython notebook , 不需要公网ip. 对方只需要浏览器访问.

    具体步骤:
    本地编写ipython notebook , 点击`File`->`Download as` -> `IPython Notebook (.ipynb)`
    打开保存的文件.将内容发布到 https://gist.github.com 中. 发布成功后, 查看浏览器的地址栏, 拿到`git number`
    在新标签页中打开 http://nbviewer.ipython.org/<gist number>, 就可以看到整齐的IPython Notebook 页面了.

    例如 :
    https://gist. github.com/luw2007/2dbc60ce26507ad74606
    得到 git number -> 2dbc60ce26507ad74606
    得到地址 -> http://nbviewer.ipython.org/2dbc60ce26507ad74606
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   792 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 20:42 · PVG 04:42 · LAX 13:42 · JFK 16:42
    ♥ Do have faith in what you're doing.