查看ipython笔记本的简单方法 [英] A simple way to view ipython notebook

查看:105
本文介绍了查看ipython笔记本的简单方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的是IPython/Jupyter笔记本的新手.我刚刚创建了一个笔记本(.ipynb),并且想在我的网页上共享它.具体来说,我想添加一个链接,当人们单击它时,它将打开一个新的网页",他们可以在其中查看"我的代码和结果.

I am really new to IPython/Jupyter notebook. I just created one notebook (.ipynb) and I want to share it on my webpage. Specifically, I want to add a link, and when people click it, it will open a new "webpage" where they can "view" my code and results.

注意:我不能使用github,这对我来说是一个巨大的痛苦.

Note: I cannot use github, it is a huge pain for me.

我尝试了nbviewer( http://nbviewer.jupyter.org/).它有几个选项,但是其中只有一个(url)与github/gist不相关.因此,为了拥有文件的URL,我将其上传到了Google Drive,并获得了该文件的公共链接.另一方面,当我将该链接放置到nbviewer(作为我的文件的url)时,它显示此url中没有文件".另一方面,我知道该链接有效,因为当我将其放在浏览器中时,它会指示我下载.ipynb文件.

I tried nbviewer (http://nbviewer.jupyter.org/). It has several options but only one of them (url) is not related to github/gist. So, in order to have an URL for my file, I uploaded it to google drive, and got a public link for the file. On the other hand, when I put that link to nbviewer (as url to my file), it says "there is no file in this url". On the other hand, I know the link works, because when I put it on browser, it directs me to download the .ipynb file.

感谢您的帮助.

谢谢,

推荐答案

用于共享笔记本的非GitHub选项似乎有限.您仍然可以直接从Google的 colaboratory 共享链接.这将使您能够:

There appears to be limited non-GitHub options for sharing notebooks. You can still share a link directly from Google's colaboratory. This will allow you to:

  • 上传文件
  • 以各种权限共享链接

任何Google用户都可以查看(并可以选择编辑)您的笔记本.

Any Google user can view (and optionally edit) your notebook.

另请参阅其他选项:

  • binder: sharing notebooks from a GitHub repo; (see related blog post)
  • nbviewer: for viewing hosted notebooks from GitHub or a url (as mentioned)
  • JupyterHub: hosting notebooks on a private server, e.g. local, DigitalOcean, etc.
  • Azure Notebooks: host notebooks on an Azure server (see sample notebook)
  • repo2docker: spawn docker container from a git repo of notebooks
  • commuter: read notebooks from a local directory or S3 service
  • cocalc: collaborative and share private notebooks

这篇关于查看ipython笔记本的简单方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆