Using Widgets in Google Colaboratory

Now Google Colab has its set of Widgets. See the example here.

https://colab.research.google.com/notebooks/widgets.ipynb

I haven’t compared how diffrent are they from normal Jupyter Widgets, though.

Update Feb'19

ipywidgets are supported now. You can test run the tutorials.


It is not currently possible to use them- currently comms messages are not supported, the WidgetManager code is not loaded into outputframes, and multiple output frames on a page is not a configuration that the WidgetManager works with.

Feel free to open a bug at https://github.com/googlecolab/colabtools/issues


some libraries widgets do work including for Bokeh which has a map plotting function which you can use instead of ipyleaflet if you are wishing to use Map Visualisations in Colab:

https://colab.research.google.com/notebook#fileId=/v2/external/notebooks/charts.ipynb&scrollTo=vlOIt0zZ5uCz

You can then use their mapping function:

http://docs.bokeh.org/en/latest/docs/user_guide/geo.html

Make sure you include:

from bokeh.io import output_notebook 
output_notebook()