How to save code file on GitHub and run on Jupyter notebook?
<p>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.</p>

<p>Here are some examples:
<a href="https://github.com/biolab/ipynb/blob/master/2015-bi/lcs.ipynb" rel="nofollow">https://github.com/biolab/ipynb/blob/master/2015-bi/lcs.ipynb</a>
<a href="https://github.com/julienr/ipynb_playground/blob/master/misc_ml/curse_dimensionality.ipynb" rel="nofollow">https://github.com/julienr/ipynb_playground/blob/master/misc_ml/curse_dimensionality.ipynb</a>
<a href="https://github.com/rvuduc/cse6040-ipynbs/blob/master/01--intro-py.ipynb" rel="nofollow">https://github.com/rvuduc/cse6040-ipynbs/blob/master/01--intro-py.ipynb</a></p>

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

<p>There is a beginner's tutorial <a href="http://readwrite.com/2013/09/30/understanding-github-a-journey-for-beginners-part-1/" rel="nofollow">here</a></p>

<p>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 <code>git checkout</code>. Further explanation is in the tutorial  </p>

python git github jupyter-notebook