using ipywidgets in jupyter notebook: how to set focus?
Asked Answered
R

2

15

Is it possible to give a jupyter notebook widget the focus? I can't see documentation or hints in the code about this?

Repair answered 25/1, 2016 at 6:52 Comment(0)
C
1

I believe there is a pull request regarding this issue and in this commit you can actually see it in code. Since this PR is already merged I hope it will be out in the upcoming ipywidgets 8.0.

Catechist answered 29/6, 2020 at 12:42 Comment(0)
U
1

It's available via .focus() but not to all widgets yet it seems.

See https://ipywidgets.readthedocs.io/en/latest/reference/ipywidgets.html#ipywidgets.widgets.domwidget.DOMWidget.focus

Unchancy answered 3/11, 2023 at 15:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.