jupyter notebook and github.

Nizam picture Nizam · Dec 28, 2017 · Viewed 18.7k times · Source

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?

Answer

VonC picture VonC · Dec 28, 2017

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 are

  • add 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.