git jupyter 笔记本和 github。

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/48003022/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 13:00:45  来源:igfitidea点击:

jupyter notebook and github.

gitgithubjupyter-notebookjupyter-irkernel

提问by Nizam

I have made a jupyter notebook and want to commit and push on github. I have windows operating system and never worked on github. Can anyone please help me out about how can I do it from scratch?

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

回答by VonC

As long as you have Git setup locally, and you have created a new Repo on GitHub side, you can:

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

  • git init .a local repo where your files are
  • add the remote (empty) repo URL

    git remote add origin https://github.com/<user>/<myrepo>
    
  • add, commit and push your files, including .ipynbjupiter ones.

  • git init .您的文件所在的本地存储库
  • 添加远程(空)repo URL

    git remote add origin https://github.com/<user>/<myrepo>
    
  • 添加、提交和推送您的文件,包括.ipynb木星文件 。

See "Working with Jupyter Notebook files on GitHub"

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

When you add Jupyter Notebook or IPython Notebook files with a .ipynbextension on GitHub, they will render as static HTML files in your repository.

The interactive features of the notebook, such as custom JavaScript plots, will not work in your repository on GitHub.

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

笔记本的交互功能(例如自定义 JavaScript 绘图)在您的 GitHub 存储库中不起作用。

回答by sat

You can use this jupyter extension. It will enable you to directly upload your ipython notebooks to github.

您可以使用此 jupyter 扩展。它将使您能够直接将您的 ipython 笔记本上传到 github。

https://github.com/sat28/githubcommit

https://github.com/sat28/githubcommit