jupyter 笔记本和 github。

Niz*_*zam 9 git github jupyter-notebook jupyter-irkernel

我已经制作了一个 jupyter notebook,想提交并推送到 github。我有 Windows 操作系统,从来没有在 github 上工作过。任何人都可以帮我解决如何从头开始的问题吗?

Von*_*onC 4

只要你在本地安装了 Git,并且在 GitHub 端创建了一个新的 Repo,你就可以:

  • git init .您的文件所在的本地存储库

  • 添加远程(空)存储库 URL

      git remote add origin https://github.com/<user>/<myrepo>
    
    Run Code Online (Sandbox Code Playgroud)
  • 添加、提交和推送您的文件,包括 .ipynbjupiter 文件。

请参阅“使用 GitHub 上的 Jupyter Notebook 文件

当您在 GitHub 上添加带有.ipynb扩展名的 Jupyter Notebook 或 IPython Notebook 文件时,它们将在存储库中呈现为静态 HTML 文件。

Notebook 的交互功能(例如自定义 JavaScript 绘图)将无法在 GitHub 上的存储库中使用。