Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jupyter notebook and github.

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?

like image 266
Nizam Avatar asked Dec 28 '17 06:12

Nizam


People also ask

Does GitHub work with Jupyter notebook?

You can configure a GitHub Token for Jupyter notebooks at per user and per account setting level from the My Accounts or JupyterLab interface. To configure the GitHub token for Jupyter notebooks for your account, see Configuring a GitHub Token.

How do I view a Jupyter notebook on GitHub?

Open https://nbviewer.jupyter.org/ and put URL of file in your repository in the textfield as shown. Press Go button to view the notebook.

Does Jupyter have git?

SESYNC's Jupyter Lab server has the JupyterLab git extension enabled. The extension is a user-friendly add-on for JupyterLab that lets you do basic git actions with a point-and-click interface.


1 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 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.

like image 141
VonC Avatar answered Sep 23 '22 18:09

VonC