Skip to content

jupyter HBox/VBox widget broken #5477

@haraldschilly

Description

@haraldschilly

The widget produced by this code in cocalc's jupyter doesn't look ok. The buttons suddenly overlap, certainly when you click on one of them. This did work, although I can't remember exactly how it should layout. The snippet is probably from the official docs.

from ipywidgets import Button, HBox, VBox

words = ['correct', 'horse', 'battery', 'staple']
items = [Button(description=w) for w in words]
left_box = VBox([items[0], items[1]])
right_box = VBox([items[2], items[3]])
HBox([left_box, right_box])

it happens with FF and Chrome.

Screenshot from 2021-09-02 09-52-26

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions