Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to host Jupyter notebook on github?

As I understand it from this github page, I can push a .ipynb to my repo and then run my notebook directly from github.

When I ask my Jupyter to download my notebook as .ipynb, I get a .ipynb.json.

What must I do to that file so that github will open that notebook with nbviewer for me?

like image 496
John Schmitt Avatar asked Aug 04 '15 15:08

John Schmitt


People also ask

How to upload files from GitHub to Jupyter Notebook?

We will use GitHub’s web interface to upload our files to our new repository. Before we upload one of our existing files, we will first create a new notebook with a “print (‘hello world’)” Python statement in a single cell. At the Jupyter dashboard, click on New button and select a Python 3 notebook.

How do I host a Jupyter Notebook?

If you have Jupyter Notebooks in your repository, you can upload and host them, too, just like regular script files. However, Jupyter Notebooks are different from scripts as they are JSON formatted documents with input cells and outputs.

How do I import a notebook file into GitHub?

Click on File -> Download as -> Notebook (.ipynb) Make a new repository into Github. Click Add Files -> Create New File. Browse through your directory and upload your file (example filename: GeeksForGeeks.ipynb) and click Open.

How to open Jupyter Notebook in Python 3?

A Jupyter file browser will open in a web browser tab, you will see your base (home) directory. There in the upper right section, you can click the New (dropdown) -> Python3 After that, a New tab of Jupyter notebook will open in you browser.


1 Answers

simply change .ipynb.json to .ipynb and then sync your github repo.

if you want open that notebook with nbviewer, click the prohibitory sign at the upper right corner of your notebook on the github page and choose external view available with nbviewer.

like image 59
Gnimuc Avatar answered Sep 30 '22 19:09

Gnimuc