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

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

问题描述

我对 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 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的简单方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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