xxxxxxxxxx
First create your github repository. Then in Collab, go to file->save a copy in github then select the repository you created and the branch you want ot use
xxxxxxxxxx
First create your github repository. Then in Collab,
go to file->save a copy in github then select the repository you created
and the branch you want ot use
xxxxxxxxxx
import urllib
github_url = 'https://github.com/username/repository/blob/branch/notebook.ipynb'
colab_url = f'https://colab.research.google.com/github/{github_url.replace("https://github.com/", "").replace("blob/", "")}'
urllib.request.urlopen(colab_url)