GT96 GT96 - 10 months ago 55
Git Question

How to save code file on GitHub and run on Jupyter notebook?

With GitHub we can store our code online, and with Jupyter notebook we can execute only a segment of our Python code. I want to use them together. I am able to edit code with Jupyter notebook that is stored on my computer. But, I am unable to find a way to run a code that stored on GitHub. So, do you know a way to do that.

Here are some examples:
https://github.com/biolab/ipynb/blob/master/2015-bi/lcs.ipynb
https://github.com/julienr/ipynb_playground/blob/master/misc_ml/curse_dimensionality.ipynb
https://github.com/rvuduc/cse6040-ipynbs/blob/master/01--intro-py.ipynb

Answer Source

Github is a tool for version and source control, you will need to get a copy of the code to a local environment.

There is a beginner's tutorial here

Once that you have set up a github account and define your local and remote repositories, you will be able to retrieve the code with git checkout. Further explanation is in the tutorial