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?
2 Answers
As long as you have Git setup locally, and you have created a new Repo on GitHub side, you can:
git init .
a local repo where your files areadd the remote (empty) repo URL
git remote add origin https://github.com/<user>/<myrepo>
add, commit and push your files, including
.ipynb
jupiter ones.
See "Working with Jupyter Notebook files on GitHub"
When you add Jupyter Notebook or IPython Notebook files with a
.ipynb
extension 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.
-
Thanks VonC. I found that in the main page of repository there is an upload button using which I can upload any file. Would that be correct to use it? And I am also worried about if I make changes in the repository how these changes will reflect on a website, I am working on a project in which I have to make a jupyter notebook with instructions and hints for students. Can you please suggest me anything on this? – Nizam Dec 28 '17 at 10:00
-
@Nizam You can use the upload button, but using a local repo and pushing back is easier. Check out GitHub Desktop for instance. (https://desktop.github.com/). As for the website, I don't have enough information. Jupyter pages are directly visible on GitHub, so that alone could be enough of a web site for your need. – VonC Dec 28 '17 at 11:39
You can use this jupyter extension. It will enable you to directly upload your ipython notebooks to github.
https://github.com/sat28/githubcommit
I have also created a video demonstrating the steps - youtube link

- 603
- 3
- 6