You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reacted by Nicolas Fernandez, Melanie Davila, Aetf, Jayen Ashar, Jonathan Wong, Fernanda Scovino, David Bau, Korakot Chaovavanich, hnishi, Ivan Lyzhin and 12 more
However, I did not see the interactive visualization. Update: the heatmap did show up after a minute. I'll think about how to clean up the implementation. Thanks again!!
Looking forward to custom widget support, but this definitely helps out in the interim.
BTW @blois, how can I upload a dataset permanently into a shareable colab notebook (e.g. the sandbox link you sent)?
This problem still persists with Google Colab on August 13th, 2020.
ArcGIS Python API maps will not display.
All the other portions of the API seem to work great in Colab, and I am able to conduct ArcGIS Online Admin from Colab.
Currently switching over to the AGOL Jupyter Notebook interface to view the map widget display.
Perhaps there could be a clever workaround by exporting to html or viewing as JavaScript.
Reacted by martinRenou, Alex I. Mandel, Zane Jobe, Owen Lamont, nuxper, Carlo de Franchis, William Ouellette, Lucas Kruitwagen, Ivan Petrushin, Berndt Lindner and 5 more
Hi, let me know if this isn't the right place - it would be great to have support for pymotif, which is a Jupyter widget for Motif, a no-code graph visualization platform. Thank you! @timlrx
The Plotly FigureWidgetsubclasses from both BaseFigure and widgets.DOMWidget. The .show() comes from BaseFigure, so when you call .show it's rendering a static HTML output without touching the widget machinery at all.
In order to render the widget and not the static HTML output mode, you need to render without .show. The below Colab notebook is a direct copy of this page in the Plotly docs, adding only the command to enable custom widgets.
Here, the widget doesn't render, and I see this console error:
For those who want to use qgrid in their Colab notebook but don't want to confuse people on colab force restart, I found a workaround for using qgrid without restarting the session. The question is about qgrid 1.1.1 not supporting pandas>1.0.0. You can fork qgrid to your own repo, roll back the version to 1.1.1, and change the code according to quantopian/qgrid#287. Then, you could pip install via git from your repo.
For example, you can do pip install git+https://github.com/lukewys/qgrid.git (a fork of qgrid where I fixed this issue).
Here, the widget doesn't render, and I see this console error:
@kylebarron thanks for the Plotly widget example! I can't find a way to view the console error (is it from terminal, which is only available with colab pro)? Do you have any sense of whether this issue can be resolved on the Colab side or if it will require work on the Plotly side?
Today ipywidgets Text will no longer work. There is a message about adding two lines to allow external widgets loading but that does not fix the problem.
Activity
korakot commentedon Apr 27, 2019
Qgrid would make it easier to work with pandas dataframe.
Hope it will be supported in the future.
cornhundred commentedon May 7, 2019
We're building a custom widget called Clustergrammer2 that is a webgl DataFrame viewer and is currently supported on Kaggle https://www.kaggle.com/cornhundred/heatmap-view-of-modern-era-player-stats
Also see nbviewer https://nbviewer.jupyter.org/github/ismms-himc/clustergrammer2-notebooks/blob/master/notebooks/3.0_10X_Genomics_2700_Dataset_NBViewer.ipynb
blois commentedon May 7, 2019
Glancing at the widget code in https://github.com/ismms-himc/clustergrammer2/blob/5acea9bff7eda546cf0647b9e3647f631eb6f5f5/clustergrammer2/clustergrammer_fun/__init__.py#L222, it doesn't seem like it's making much use of the Widgets API, specifically comms messages.
A quick example of your (very slick) notebook running in Colab, with the visualizations:
https://colab.sandbox.google.com/gist/blois/dd01cd63d199acca951aadefb22067a8/heatmap-view-of-modern-era-player-stats.ipynb
cornhundred commentedon May 7, 2019
Thanks @blois for your help. In order to run the notebook you sent I had to add the Seasons_Stats.csv (from here https://www.kaggle.com/drgilermo/nba-players-stats) to the filesystem.
However, I did not see the interactive visualization.Update: the heatmap did show up after a minute. I'll think about how to clean up the implementation. Thanks again!!Looking forward to custom widget support, but this definitely helps out in the interim.
BTW @blois, how can I upload a dataset permanently into a shareable colab notebook (e.g. the sandbox link you sent)?
Here is a link to a notebook that does not require an external dataset https://colab.research.google.com/gist/cornhundred/b7154ee964c71cec6a2378f9cbba8eeb/clustergrammer2_example.ipynb?authuser=1
cc @manugarciaquismondo.
blois commentedon May 17, 2019
@korakot we recently added an interactive dataframe viewer that we've been using internally for ages.
You can enable it by default with:
Or use it on a per-dataframe basis:
korakot commentedon May 18, 2019
@blois Thanks a lot. It will surely help.
BTW, is there a widget to edit the dataframe as well?
And what other
%load_extare available? Is there a list somewhere?Kreijstal commentedon Jun 20, 2020
can you install custom widgets now? I'd like to have a variable previewer just like allefeld/ipyinspector#1
Location-Artistry commentedon Aug 13, 2020
This problem still persists with Google Colab on August 13th, 2020.
ArcGIS Python API maps will not display.
All the other portions of the API seem to work great in Colab, and I am able to conduct ArcGIS Online Admin from Colab.
Currently switching over to the AGOL Jupyter Notebook interface to view the map widget display.
Perhaps there could be a clever workaround by exporting to html or viewing as JavaScript.
giswqs commentedon Sep 19, 2020
@blois Please add support for ipyleaflet, which would make visualizing and interacting Google Earth Engine tile layers much easier with the earthengine-api. @tylere @SylvainCorlay @martinRenou @davidbrochart
jasonho-lynx commentedon Jun 18, 2021
Hi, let me know if this isn't the right place - it would be great to have support for pymotif, which is a Jupyter widget for Motif, a no-code graph visualization platform. Thank you! @timlrx
ucalyptus commentedon Jul 10, 2021
@blois any updates on this?
Berowne commentedon Aug 31, 2021
+1 for QGRID
blois commentedon Sep 1, 2021
We are working on this, some details of the proposal are in https://github.com/googlecolab/colab-cdn-widget-manager.
Right now the support can be experimented with by adding to the cell displaying the widget:
This will remain opt-in but we plan to work on improving the mechanism.
Some examples:
This specific widget manager version is tied to @jupyter-widgets/base v5.0.0a so there may be some incompatibilities with with specific widget versions (https://github.com/bloomberg/ipydatagrid is known to be incompatible for example).
Please feel free to open specific bugs in https://github.com/googlecolab/colab-cdn-widget-manager/issues.
24 remaining items
kylebarron commentedon Nov 29, 2021
From my comment here #498 (comment)
In order to render the widget and not the static HTML output mode, you need to render without
.show. The below Colab notebook is a direct copy of this page in the Plotly docs, adding only the command to enable custom widgets.Here, the widget doesn't render, and I see this console error:

lukewys commentedon Nov 30, 2021
For those who want to use
qgridin their Colab notebook but don't want to confuse people on colab force restart, I found a workaround for usingqgridwithout restarting the session. The question is aboutqgrid 1.1.1not supporting pandas>1.0.0. You can forkqgridto your own repo, roll back the version to 1.1.1, and change the code according to quantopian/qgrid#287. Then, you could pip install via git from your repo.For example, you can do
pip install git+https://github.com/lukewys/qgrid.git(a fork ofqgridwhere I fixed this issue).tylere commentedon Dec 20, 2021
Please add support for the ipytree widget too: #2522
cardinalgeo commentedon Dec 20, 2021
@kylebarron thanks for the Plotly widget example! I can't find a way to view the console error (is it from terminal, which is only available with colab pro)? Do you have any sense of whether this issue can be resolved on the Colab side or if it will require work on the Plotly side?
blois commentedon Dec 20, 2021
@cardinalgeo Support for the plotly widgets was tracked in googlecolab/colab-cdn-widget-manager#19. There's a link to your example working in there.
blois commentedon Dec 20, 2021
At this point installation of custom widgets is supported. This requires opting in by using the code:
Specific widgets may need additional investigation or tweaks. It's easiest to open individual issues for these investigations. Most of the bugs have been tracked in https://github.com/googlecolab/colab-cdn-widget-manager/issues?q=is%3Aissue.
cardinalgeo commentedon Dec 21, 2021
Hi @blois, thanks for the follow up! However, the example still seems to not work. I'll continue this thread in googlecolab/colab-cdn-widget-manager#19
martinRenou commentedon Dec 21, 2021
Thanks a lot for your work on this @blois !
cornhundred commentedon Dec 21, 2021
Thanks @blois!!! This is amazing!
nulflux commentedon Aug 19, 2022
Today ipywidgets Text will no longer work. There is a message about adding two lines to allow external widgets loading but that does not fix the problem.
colaboratory-team commentedon Aug 19, 2022
@nulflux downgrading the ipywidgets version should work for you until we can get a fix out:
!pip install ipywidgets==7.7.1and then restart your runtimenulflux commentedon Aug 19, 2022
blois commentedon Aug 22, 2022
Added some details on the issue in #3020 (comment).
ammarsaf commentedon Mar 24, 2025
Already
!pip install ipywidgets==7.7.but not working today.