Someone share a Jupyter notebook via Google Drive. https://drive.google.com/file/d/0B88HiG_KpEbQcVhNa1NpZzVrT3c/view?usp=sharing
I want to make the link a runnable version on Google Colab instead. How do I do that?
Simply click the Share button at the top right of any Colab notebook, or follow these Google Drive file sharing instructions. If you choose to share a notebook, the full contents of your notebook (text, code, output, and comments) will be shared.
With Colab you have to insert an <a name="id"></a> tag in the cell you want to link to.
There is currently no way to do what you are asking for – to construct a URL that will cause Colab to automatically load the contents of a . py file at a particular URL into a new Colab notebook. The closest thing to this is to host a notebook on github, and then use a Colab url to open it: e.g.
First take the ID part from the Drive URL. Here the ID is 0B88HiG_KpEbQcVhNa1NpZzVrT3c
Then put it in the fileId parameter in Colab URL, like this. https://colab.research.google.com/notebook#fileId=0B88HiG_KpEbQcVhNa1NpZzVrT3c&offline=true&sandboxMode=true
Notice the offline and sandboxMode parameters. Without them, the notebook will be read-only. In that case, you need to either duplicate it or change to playground mode to make it runnable
Newer URL is in this format instead:
https://colab.research.google.com/drive/0B88HiG_KpEbQcVhNa1NpZzVrT3c#offline=true&sandboxMode=true
Easiest method- when the notebook is open in Colab:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With