question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

widget support on Kaggle kernel

See original GitHub issue

I’m unable to get my widget (https://github.com/ismms-himc/clustergrammer2) to work in Kaggle (link to public kaggle notebook https://www.kaggle.com/cornhundred/kernel064927894e). I’m seeing the following error that begins with Could not instantiate widget:

Screen Shot 2019-04-05 at 1 19 41 PM

I’m using the following commands to pip install the widget:

!pip install ipywidgets
!pip install clustergrammer2
!jupyter nbextension enable --py --sys-prefix widgetsnbextension
!jupyter nbextension enable --py --sys-prefix clustergrammer2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
cornhundredcommented, Apr 8, 2019

I commented on someone facing the same issue on Kaggle under product-feedback https://www.kaggle.com/product-feedback/42782

1reaction
cornhundredcommented, Apr 7, 2019

I think we can just raise a question on their Q&A section. Someone already asked about Jupyter widgets here (https://www.kaggle.com/questions-and-answers/33450) and here (https://www.kaggle.com/cavendish/interactive-widgets-in-a-notebook).

It actually seems to be very easy to get the widget to run in the notebook (see notebook https://www.kaggle.com/cornhundred/clustergrammer2-viz-stoeckius-et-al-2017). You just have to go to settings (on the right panel), Packages: Install, and just give the name of the custom package. I did not even need to do the usual jupyter nbextension enable --py --sys-prefix widgetsnbextension step.

On a related note, I could not get the widget working on Google’s colab.

If widgets in kaggle works as easily as it seems to (and especially if we can embed the widgets into the static html notebooks) then it will be very useful for our group. Kaggle offers computers with 16GB of ram, private projects, easy version controlling, etc.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Diving Into IPython Widgets - Kaggle
ipywidgets is an open-source python library that is used to generate different types of widgets and implement them in a notebook. It is...
Read more >
Interactive components in kernels? | Data Science ... - Kaggle
Interactive components that need open client–server channels—such as Jupyter Widgets, Bokeh interactives, Plotly charts and Shiny extravaganzas—will be ...
Read more >
Cannot use interactive widgets in Kaggle Kernels
Unfortunately we can't support many interactive widgets in Kaggle notebooks. For example, if it needs a live backend connected, it won't render properly...
Read more >
enabling ipywidgets(jupyter extension) | Data Science and ...
Is there a way to getting ipywidgets working in kernels. It is installed(probably a dependency during jupyter install). I my machine I have...
Read more >
Is it possible to enable the qgrid widget in a Python Kernel?
First of all, i think that the kernels are a really great environment. Also, nearly all functionality is available, including ipywidgets which is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found