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.

Stacked widget dont work

See original GitHub issue

On latest version this code produces error in chrome console.

import ipywidgets
ipywidgets.Stacked()

Error: Cannot find model module @jupyter-widgets/controls@1.5.0, StackedModel

Tried regenerate model schema (generate-spec.py) with no result.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bloiscommented, Nov 1, 2021

Colab’s in-progress support for 3rd party widgets builds off of the ipywidgets 8.0 alpha so it can be used- an example is: https://colab.research.google.com/gist/blois/2eed369f917b6e71a717684a65a06a84/stacked_widget.ipynb

I’m seeing an error when the selected_index is not specified for widgets.Stacked. I believe it comes from null being allowed here: https://github.com/jupyter-widgets/ipywidgets/blob/51cb73a0b31ed3f087de52d5122e565aa47b45f6/ipywidgets/widgets/widget_selectioncontainer.py#L19

But then that doesn’t appear to be handled here: https://github.com/jupyter-widgets/ipywidgets/blob/51cb73a0b31ed3f087de52d5122e565aa47b45f6/packages/controls/src/widget_selectioncontainer.ts#L442-L445

(But this error may be Colab-specific) (edit: specifying selected_index does appear to fix the issue in the binder link as well)

0reactions
shadiakiki1986commented, Nov 1, 2021

@YoraiLevi ipywidgets.Stacked not working in colab is another issue: https://github.com/googlecolab/colabtools/issues/498#issuecomment-956321234

Read more comments on GitHub >

github_iconTop Results From Across the Web

StackedWidget does not works properly - Stack Overflow
I have the following code snipet in my program. I was about to use a stacked widget as my central widget. The class...
Read more >
Anyone have trouble stacking widgets? - Apple Community
Been trying to create a stacked widget. Can't get the stackee to stay still. I can create folders hovering an icon over another, ......
Read more >
10 Quick Fixes for When Widgets Aren't Working on Your ...
10 Quick Fixes for When Widgets Aren't Working on Your iPhone or iPad · 1. Restart Your iPhone or iPad · 2. Update...
Read more >
Stacked widget not displaying properly, is this happening to ...
It's because you're using a stack size that's too big to be displayed in the pinned window with one already on top.
Read more >
18 solutions to fix widgets not working on iPhone and iPad
Many times the widgets may not work due to a bug in the app. For example, if a third-party widget doesn't refresh or...
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