问题描述
我对 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.
感谢您的帮助.
谢谢,J.
推荐答案
共享笔记本的非 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.
另见其他选项:
- Jupyter Notebooks IPYNB 查看器:用于查看/转换 nbs 的 chrome 扩展
- binder:从 GitHub 存储库共享笔记本;(见相关博文)
- nbviewer:用于从 GitHub 或 url(如上所述)查看托管笔记本
- JupyterHub:在私人服务器上托管笔记本,例如本地,DigitalOcean
- Azure Notebooks:在 Azure 服务器上托管笔记本(请参阅 示例笔记本)
- repo2docker:从笔记本的 git 仓库生成 docker 容器
- commuter:从本地目录或 S3 服务读取笔记本
- cocalc:协作和共享私人笔记本
- nextjournal:发布笔记本并将工作保存为容器
- Deepnote:设置简单的实时协作笔记本
- fastpages:通过 GitHub Actions 将 notebooks/markdown 转换为 GitHub 页面(感谢 Björn)
- Jupyter Notebooks IPYNB Viewer: chrome extension to view/convert nbs
- 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
- 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
- nextjournal: publish notebooks and save work as containers
- Deepnote: real-time collaborative notebooks with simple setup
- fastpages: convert notebooks/markdown to GitHub pages via GitHub Actions (thanks Björn)
这篇关于查看ipython notebook的简单方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!