查看ipython笔记本的简单方法

编程入门 行业动态 更新时间:2024-10-25 18:30:58
本文介绍了查看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( nbviewer.jupyter/).它有几个选项,但是其中只有一个(url)与github/gist不相关.因此,为了拥有文件的URL,我将其上传到了Google Drive,并获得了该文件的公共链接.另一方面,当我将该链接放置到nbviewer(作为我的文件的url)时,它显示此url中没有文件".另一方面,我知道该链接有效,因为当我将其放在浏览器中时,它会指示我下载.ipynb文件.

I tried nbviewer (nbviewer.jupyter/). 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 :从GitHub存储库共享笔记本; (参见相关博客文章)
  • nbviewer :用于从GitHub或url(如上所述)查看托管的笔记本
  • JupyterHub :将笔记本托管在私有服务器上,例如本地,DigitalOcean等.
  • Azure笔记本:在Azure服务器上托管笔记本(请参阅示例笔记本)
  • repo2docker :从笔记本的git repo中生成docker容器
  • 通勤者:从本地目录或S3服务读取笔记本
  • cocalc :协作并共享私人笔记本
  • 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笔记本的简单方法

本文发布于:2023-10-28 19:53:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1537613.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:简单   笔记本   方法   ipython

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!