V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
luw2007
V2EX  ›  分享发现

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

  •  
  •   luw2007 · 2015-01-15 13:33:56 +08:00 · 3491 次点击
    这是一个创建于 3382 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1069 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 18:43 · PVG 02:43 · LAX 11:43 · JFK 14:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.