Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to save Jupyter notebooks from GitHub

When I download an ipynb file using the RAW button in GitHub it displays the text (json) in the browser.

Should I just copy this text into a file and name it xxx.ipynb? What's the best way to do it?

like image 590
aerin Avatar asked Aug 10 '17 20:08

aerin


People also ask

How do I download a Jupyter notebook from GitHub as a PDF?

Use it. Create a notebook and the click "File -> Download As". Click the new menu entry called "PDF via HTML". Your notebook will be converted to a PDF on the fly and then downloaded.

How do I save my Jupyter notebook?

Saving a Jupter notebookThere is a disk icon in the upper left of the Jupyter tool bar. Click the save icon and your notebook edits are saved. It's important to realize that you will only be saving edits you've made to the text sections and to the coding windows. You will NOT be saving the results of running the code.


1 Answers

  1. First click on Raw
  2. Then, press ctrl+s to save it as .ipynb (Note that you'll have to manually type '.ipynb' after the file name to make this work, as files from GitHub are saved as text files as default.)
  3. Open jupyter notebook
  4. Go to location where you saved .ipynb file
  5. Open file, you will see the code

Hope this helps

like image 161
Ramesh Kumar Avatar answered Sep 18 '22 13:09

Ramesh Kumar