如何在 github 上托管 Jupyter notebook?

How to host Jupyter notebook on github?

据我从 this github page 了解,我可以将 .ipynb 推送到我的存储库,然后直接从 github.

运行 我的笔记本

当我要求我的 Jupyter 将我的笔记本下载为 .ipynb 时,我得到一个 .ipynb.json

我必须对该文件做些什么才能github 为我打开带有 nbviewer 的笔记本?

只需将 .ipynb.json 更改为 .ipynb,然后同步您的 github 存储库。

如果您想使用 nbviewer 打开该笔记本,请在 github 页面上单击笔记本右上角的 prohibitory sign 并选择 external view available with nbviewer