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?
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.
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.
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.
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.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With