Open Python Notebook from Github

Phylypo Tum
3 min readDec 18, 2019

--

This shows how to open Python notebook from Github using Google Colab. This instruction is for specifically open the CRF-Khmer-Segmentation.ipynb in github project but it can apply to any notebooks.

Google Colab is currently a free python notebook that can run your code without having to connect to your own machine. All you need a web browser. Similarly, Microsoft has a free python notebook at https://notebooks.azure.com.

To start using Python notebook on Google Colab, just follow these 5 simple steps:

  1. From your browser go to: colab.google.com. You will see this:

2. Click sign in to authenticate to google if you have not done so. You have the option to create new account if you don’t have a Google account yet.

Now you should see this screen:

If you are not in the open windows, go can to File, click Open notebook…

3. Now in the Open Windows notebook, Click on GitHub.
Then enter the following in the repository url: https://github.com/phylypo/segmentation-crf-khmer

4. You should now see a list of notebooks. Now click CRF-Khmer-Segmentation.ipynb. You should see this screen:

5. Now you are ready to run the code, by click on play mark in the red circle above.

It may prompt you about running the notebook from GitHub. Click “RUN ANYWAY” to begin. Now you should see the output right after code:

Remember to expand the dropdown triangle to see collapsed code/text. Some codes are shown as titles, just double click to see the code.

Have fun coding.

--

--