Closed ceball closed 7 years ago
currently coLaboratory doesn't support widgets. This is mainly because we were basing coLaboratory off a version of IPython before widgets were introduced. We have some long term plans for re-syncing coLaboratory with IPython/Jupyter master, but until then we probably won't be adding support for widgets.
This version of colaboratory is no longer supported, please switch to https://colab.research.google.com.
Hi
I have a short IPython notebook with a simple widget that runs fine under IPython notebook 2.1.0, but which I can't get to work with colaboratory. I'm running the "classic web app" on my own computer i.e.
python -m colaboratory
, I launch chrome with--disable-web-security
, and I visithttp://127.0.0.1:8844
to use colaboratory.The notebook contains the following three cells (the .ipynb file is at https://drive.google.com/file/d/0B2GEeTv36tvTb0FCRWU3eHFqWWM/view?usp=sharing):
And test.js is just:
This works in IPython notebook. For testing in colaboratory, I put test.js in
colaboratory/resources/colab/
and I changed the second cell's Javascript() call toJavascript("$.getScript('/colab/test.js');")
. When I callDateWidget()
I don't see any widget, and the browser console log says:I'm not familiar with IPython notebook's widgets, so I'm trying to puzzle my way backwards from this error message at the moment. I'd be grateful for any pointers!
Thanks Chris