googlecolab / colabtools

Python libraries for Google Colaboratory
Apache License 2.0
2.17k stars 703 forks source link

Feature request: Embedding google colab notebook as an iframe #1225

Open oeway opened 4 years ago

oeway commented 4 years ago

I think it would be great if google colab can allow embed notebooks into other websites(e.g. a blog post, project website), currently, it said colab.research.google.com refused to connect. because it it set 'X-Frame-Options' to 'deny'.

There is an article described a workaround to save into a gist, but then you cannot run the embedded notebook.

grahambates-code commented 1 year ago

+1

myh90 commented 1 year ago

As a CS teacher I'll say that embedding live/runnable Google Colab code cells in a Google Doc and/or webpage would be very helpful for students. Adding this capability will make learning much more effective, since students going through a tutorial online could practice/execute code in the embedded Colab cell right away and achieve "just-in-time" learning.

hima-v commented 1 year ago

Right this would be really useful to explain the code and the examples, especially for websites like Virtual Labs.

wasiu-yusuf commented 1 year ago

This will be helpful as I find it hard to show students unexecutable code. Do you happen to have any updates on this? It has been 3 years already!

Workaround

I currently use Trinket to create embed into my website to run my codes. It support popular ML libraries (scikit-learn, pandas, numpy, etc.) BUT NLP with NLTK and Spacy is still a challenge

rhelmstedter commented 1 year ago

@wasiu-yusuf I have started using replit. It is incredible. I still wish I could iframe google colab, but replit has been meeting my needs.

wasiu-yusuf commented 1 year ago

@wasiu-yusuf I have started using replit. It is incredible. I still wish I could iframe google colab, but replit has been meeting my needs.

@rhelmstedter how do you embed replit notebooks? and does it support NLP libraries?

duongddinh commented 5 months ago

+1

nturan commented 4 months ago

+1

gerv94 commented 3 months ago

+1

oceans404 commented 3 months ago

would love this feature so we could embed our colabs into our docs directly

kabs9000 commented 1 month ago

+1

AndreaFrancis commented 4 days ago

+1