Cannot create a widget whose initial state is visible=False
See original GitHub issueIn ipywidgets 5.2.2 the code below produces a widget that is visible:
check = Checkbox(description="A box", visible=False)
check
In ipywidgets 4, the checkbox wouldn’t be displayed until I later set check.visible = True
.
While this minimal example is pretty silly, I do rely heavily on being able to construct a widget with some components not visible until the user interacts with other elements.
A workaround or fix would be great.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:25 (18 by maintainers)
Top Results From Across the Web
ipywidget interactive hiding visibility - python - Stack Overflow
... from here Cannot create a widget whose initial state is visible=False ... button.layout.visibility = "hidden" # Make the widget visible ...
Read more >Possible bug with window using Visible(false) - Telerik
If you default the visible state to false the window as well as the content get styled to display:none. It seems like the...
Read more >ipywidget interactive hiding visibility - DevPress - CSDN
Answer a question I would like to make an interactive module with ... from here Cannot create a widget whose initial state is...
Read more >Python – ipywidget interactive hiding visibility - iTecNote
I want to hide the visibility of a certain ipywidget object dependent on a ... got if from here Cannot create a widget...
Read more >Building Interactive Figma Widgets | CSS-Tricks
We must add state to our widget, which all React developers know is a variable whose change triggers the re-rendering of our component....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Both
title
andselect
use the same instance ofLayout
, and both widgets are used twice (it shows the sameLabel
andSelectMultiple
twice, not copies). In short, all the (non-box) widgets have the exact same instance ofbox_layout
. Try creating one layout for each widget (and probably multiple value widgets).Can you post some code reproducing this?