Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Widgets in Google Colaboratory

Is it possible to use Jupyter Widgets in Google Colaboratory?

I followed the instructions here, both with ipyleaflet and bqplot

But I got this error message.

Failed to display Jupyter Widget of type Map.

If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.

If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.

Is it possible to use these widgets? Or did I make a mistake somewhere?

like image 406
korakot Avatar asked Dec 07 '17 01:12

korakot


1 Answers

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.

like image 128
korakot Avatar answered Oct 11 '22 18:10

korakot