8

This is a fairly basic question.

I am working on a data science project inside of a Pandas tutorial. I can access my Jupyter notebooks through my Anaconda installation. The only problem is that the tutorial notebooks (exercise files) are on GitHub.

My question: how do I download the exercise files from GitHub and then have them display in the Jupyter notebook section on my computer so that I can use them interactively?

I am very new to Jupyter Notebooks. So far, I have been using PyCharm to execute all of my code.

Ethan
  • 1,625
  • 8
  • 23
  • 39

4 Answers4

16

You can do:

  1. Open the jupyter notebook you want to run.

  2. Click on: Raw
    enter image description here

  3. Save Ctrl+S

  4. Remove: .txt

enter image description here

  1. Now navigate to the directory where notebook is downloaded in jupyter notebook and open it.
Ethan
  • 1,625
  • 8
  • 23
  • 39
Krishna
  • 295
  • 1
  • 6
6

If the tutorial is a GitHub repo, sure. Clone the repository. Run jupyter-notebook and open the notebook there.

datarules
  • 76
  • 2
4

This is a tool that I came across to run Jupyter notebooks: Binder.

You just need to input the repo you are looking at, the branch, and the path. Then you can interactively run the notebook.

The notebook gets hosted by the website, so you don't need to worry about computing power on your machine or installing all the required packages.

Shayan Shafiq
  • 1,012
  • 4
  • 11
  • 24
Bruno Lubascher
  • 3,488
  • 1
  • 11
  • 35
1
  1. First click on Raw

  2. Then, press ctrl+s

  3. IMPORTANT STEP: Ii ipynb extension is already present after the filename. Clear the extension and rewrite it and save it

  4. Go to location where you saved .ipynb file

  5. Open the jupyter file

Hope it works

fuwiak
  • 1,355
  • 8
  • 13
  • 26
sanjayy27
  • 11
  • 1