# Widgets

**URL:** https://discourse.jupyter.org/c/widgets/46.md?page=1

[Latest](https://discourse.jupyter.org/latest.md) · [Categories](https://discourse.jupyter.org/categories.md) · [Tags](https://discourse.jupyter.org/tags.md)

**Page:** 2

---

## [How to combine a image with widgets?](https://discourse.jupyter.org/t/how-to-combine-a-image-with-widgets/17088)

<div class="topic-metadata">

**Author:** [@tomweb153](https://discourse.jupyter.org/u/tomweb153)\
**Replies:** 6\
**Last updated:** [September 5, 2024, 1:22pm UTC](https://discourse.jupyter.org/t/how-to-combine-a-image-with-widgets/17088 "2024-09-05T13:22:41Z")

</div>

Hello, I have a question for which I cannot find any practical solution. I would like to add some sliders beneath some of the elements of this block diagram. For example I would like to add a slider, which controls N\[k\]…

---

## [Using yfiles-jupyter-graphs-for-neo4j on panel](https://discourse.jupyter.org/t/using-yfiles-jupyter-graphs-for-neo4j-on-panel/27236)

<div class="topic-metadata">

**Author:** [@Sador](https://discourse.jupyter.org/u/Sador)\
**Replies:** 0\
**Last updated:** [July 28, 2024, 7:01am UTC](https://discourse.jupyter.org/t/using-yfiles-jupyter-graphs-for-neo4j-on-panel/27236 "2024-07-28T07:01:32Z")

</div>

I was working on building a dashboard using jupyter notebook. I am using yfiles-jupyter-graphs-for-neo4j to display graphs. This works fine on the Jupyter Notebook, but does anyone know how to make this servable using a …

---

## [Getting null in theme](https://discourse.jupyter.org/t/getting-null-in-theme/27167)

<div class="topic-metadata">

**Author:** [@Arpit\_Joshi](https://discourse.jupyter.org/u/Arpit_Joshi)\
**Replies:** 1\
**Last updated:** [July 25, 2024, 9:11am UTC](https://discourse.jupyter.org/t/getting-null-in-theme/27167 "2024-07-25T09:11:43Z")

</div>

I am trying to implement theme change signal in my extension. But when I am accessing theme using themeManager I am getting null. Below is the example of the code: import { JupyterFrontEnd, JupyterFrontEndPlugin }…

---

## [Output to original stdout and displaypub inside an Output widget](https://discourse.jupyter.org/t/output-to-original-stdout-and-displaypub-inside-an-output-widget/26864)

<div class="topic-metadata">

**Author:** [@qqdaiyu55](https://discourse.jupyter.org/u/qqdaiyu55)\
**Replies:** 0\
**Last updated:** [July 11, 2024, 12:46am UTC](https://discourse.jupyter.org/t/output-to-original-stdout-and-displaypub-inside-an-output-widget/26864 "2024-07-11T00:46:45Z")

</div>

Hi there, I’m wondering if it’s possible to output contents to original stdout and displaypub inside an Output widget. For example from ipywidgets import Output output\_widget = Output() with output\_widget: the\_func…

---

## [Failed building wheel for pyzmq. could not build wheels for pyzmq, which is required to install pyproject.toml-based projects](https://discourse.jupyter.org/t/failed-building-wheel-for-pyzmq-could-not-build-wheels-for-pyzmq-which-is-required-to-install-pyproject-toml-based-projects/22308)

<div class="topic-metadata">

**Author:** [@Terlan](https://discourse.jupyter.org/u/Terlan)\
**Replies:** 10\
**Last updated:** [June 21, 2024, 12:00pm UTC](https://discourse.jupyter.org/t/failed-building-wheel-for-pyzmq-could-not-build-wheels-for-pyzmq-which-is-required-to-install-pyproject-toml-based-projects/22308 "2024-06-21T12:00:55Z")

</div>

could not build wheels for pyzmq, which is required to install pyproject.toml-based projects. Things I found on internet didn’t help (such as pip install pyzmq==23.2.1) To reproduce: follow ipywidgets \> custom widget…

---

## [Passing variables from widget values to further functions on button click](https://discourse.jupyter.org/t/passing-variables-from-widget-values-to-further-functions-on-button-click/26403)

<div class="topic-metadata">

**Author:** [@Icer1](https://discourse.jupyter.org/u/Icer1)\
**Replies:** 2\
**Last updated:** [June 19, 2024, 2:23pm UTC](https://discourse.jupyter.org/t/passing-variables-from-widget-values-to-further-functions-on-button-click/26403 "2024-06-19T14:23:07Z")

</div>

I have two questions/problems: I am trying to generate an interface where the user can select options from combobox/dropdowns, add some detail text then click a button which executes a function using the values initiall…

---

## [Just give me a simple HELLO WORLD example for ipywidgets](https://discourse.jupyter.org/t/just-give-me-a-simple-hello-world-example-for-ipywidgets/25587)

<div class="topic-metadata">

**Author:** [@Joao\_Pimentel\_Ferrei](https://discourse.jupyter.org/u/Joao_Pimentel_Ferrei)\
**Replies:** 3\
**Last updated:** [May 21, 2024, 7:21pm UTC](https://discourse.jupyter.org/t/just-give-me-a-simple-hello-world-example-for-ipywidgets/25587 "2024-05-21T19:21:06Z")

</div>

I developed my jupiter notebook, I’m very stressed with workload, and thus I don’t have time for learning all the cumbersome documentation for ipywidgets Please, just give me a simple one-file hello world example on how…

---

## [How to add checkboxes widget](https://discourse.jupyter.org/t/how-to-add-checkboxes-widget/26256)

<div class="topic-metadata">

**Author:** [@EoinDwyer](https://discourse.jupyter.org/u/EoinDwyer)\
**Replies:** 1\
**Last updated:** [June 11, 2024, 1:40pm UTC](https://discourse.jupyter.org/t/how-to-add-checkboxes-widget/26256 "2024-06-11T13:40:36Z")

</div>

Hi there, I have a function “def plot\_multiple(\*args):” in which a user inputs a tissue type - tissues = { “blood”: 0, “bone\_cancellous”: 1, “bone\_cortical”: 2, “brain\_gm”: 3, “brain\_wm”: 4, “fat\_inf”: 5, “fat\_no…

---

## [Integrating IPython Display Functions and Widgets in a Wrapper Kernel](https://discourse.jupyter.org/t/integrating-ipython-display-functions-and-widgets-in-a-wrapper-kernel/25100)

<div class="topic-metadata">

**Author:** [@ikappaki](https://discourse.jupyter.org/u/ikappaki)\
**Replies:** 1\
**Last updated:** [May 7, 2024, 8:02pm UTC](https://discourse.jupyter.org/t/integrating-ipython-display-functions-and-widgets-in-a-wrapper-kernel/25100 "2024-05-07T20:02:34Z")

</div>

Hi, I’ve developed a wrapper kernel for the Basilisp Lisp dialect that runs on Python, starting with the echo\_kernel as a foundation. It generally works well, but I’m having trouble with IPython’s display functions and i…

---

## [Voila rendering plots but not ipywidgets](https://discourse.jupyter.org/t/voila-rendering-plots-but-not-ipywidgets/24896)

<div class="topic-metadata">

**Author:** [@Abhishek2048](https://discourse.jupyter.org/u/Abhishek2048)\
**Replies:** 0\
**Last updated:** [March 31, 2024, 4:51am UTC](https://discourse.jupyter.org/t/voila-rendering-plots-but-not-ipywidgets/24896 "2024-03-31T04:51:18Z")

</div>

I have created a dashboard using ipywidgets and trying to render it on voila. It runs perfectly on one system but not on other. On the other system plots are rendered but not widgets. I have updated all the packages on b…

---

## [getCellOutput is null in widget ui-test](https://discourse.jupyter.org/t/getcelloutput-is-null-in-widget-ui-test/24870)

<div class="topic-metadata">

**Author:** [@superstar54](https://discourse.jupyter.org/u/superstar54)\
**Replies:** 0\
**Last updated:** [March 29, 2024, 8:59am UTC](https://discourse.jupyter.org/t/getcelloutput-is-null-in-widget-ui-test/24870 "2024-03-29T08:59:44Z")

</div>

In my ui-test, the cell output is null, await page.notebook.runCellByCell({ onAfterCellRun: async (cellIndex: number) =\> { const cell = await page.notebook.getCellOutput(cellIndex); if (cell) {…

---

## [Slider does not show after upgrade Jupyter](https://discourse.jupyter.org/t/slider-does-not-show-after-upgrade-jupyter/24752)

<div class="topic-metadata">

**Author:** [@HJW019](https://discourse.jupyter.org/u/HJW019)\
**Replies:** 4\
**Last updated:** [March 25, 2024, 3:19am UTC](https://discourse.jupyter.org/t/slider-does-not-show-after-upgrade-jupyter/24752 "2024-03-25T03:19:21Z")

</div>

I’ve been using Julia in Jupyter Notebook (NB) to make interactive plots with Interact.jl. It worked well until I upgraded Jupyter, and then the slider disappeared without any error messages. Before the upgrade: NB ve…

---

## [How to modify the jupyverse UI](https://discourse.jupyter.org/t/how-to-modify-the-jupyverse-ui/24577)

<div class="topic-metadata">

**Author:** [@rustuser](https://discourse.jupyter.org/u/rustuser)\
**Replies:** 4\
**Last updated:** [March 19, 2024, 5:01am UTC](https://discourse.jupyter.org/t/how-to-modify-the-jupyverse-ui/24577 "2024-03-19T05:01:26Z")

</div>

in the cloned GitHub - jupyter-server/jupyverse: A Jupyter server based on FastAPI 🚀 project codebase , I can not find the UI-releated files( html nor js nor css ) which is required when browse by browser. so what’s…

---

## [Troubleshooting \`ipywidgets.SelectionSlider\`: Preserving Value Across Option Changes](https://discourse.jupyter.org/t/troubleshooting-ipywidgets-selectionslider-preserving-value-across-option-changes/23930)

<div class="topic-metadata">

**Author:** [@A\_A](https://discourse.jupyter.org/u/A_A)\
**Replies:** 2\
**Last updated:** [February 14, 2024, 8:56pm UTC](https://discourse.jupyter.org/t/troubleshooting-ipywidgets-selectionslider-preserving-value-across-option-changes/23930 "2024-02-14T20:56:23Z")

</div>

In the following example, I’m trying to reset the value of the ipywidgets SelectionSlider to the minimum value according to an sample dataset: import ipywidgets as widgets data = { "A": \[1,4,5,7\], "B": \[123, 45…

---

## [Adopting Lumino](https://discourse.jupyter.org/t/adopting-lumino/23901)

<div class="topic-metadata">

**Author:** [@sdirix](https://discourse.jupyter.org/u/sdirix)\
**Replies:** 2\
**Last updated:** [February 14, 2024, 10:03am UTC](https://discourse.jupyter.org/t/adopting-lumino/23901 "2024-02-14T10:03:44Z")

</div>

Hi! I’m an active contributor to Theia, an open source framework for creating web based IDEs. See our official website, if you are interested in more information. Currently, Theia uses phosphorjs for window management.…

---

## [How to get kernel of mainareawidget?](https://discourse.jupyter.org/t/how-to-get-kernel-of-mainareawidget/22769)

<div class="topic-metadata">

**Author:** [@Terlan](https://discourse.jupyter.org/u/Terlan)\
**Replies:** 2\
**Last updated:** [February 4, 2024, 8:16am UTC](https://discourse.jupyter.org/t/how-to-get-kernel-of-mainareawidget/22769 "2024-02-04T08:16:16Z")

</div>

Hi, I need to access to kernel from MainAreaWidget instance? How can I achieve this? Thanks

---

## [How to execute cell in JupyterLab (javascript:Jupyter.notebook.execute\_cells not working)](https://discourse.jupyter.org/t/how-to-execute-cell-in-jupyterlab-javascript-jupyter-notebook-execute-cells-not-working/22993)

<div class="topic-metadata">

**Author:** [@ebalcsk](https://discourse.jupyter.org/u/ebalcsk)\
**Replies:** 4\
**Last updated:** [December 20, 2023, 3:28pm UTC](https://discourse.jupyter.org/t/how-to-execute-cell-in-jupyterlab-javascript-jupyter-notebook-execute-cells-not-working/22993 "2023-12-20T15:28:44Z")

</div>

In Jupyter notebook i used the following widget to run a cell after selecting some parameter from some drop down list: run\_html = widgets.Output() run\_html.append\_display\_data(HTML('\<form action="javascript:Jupyter.note…

---

## [How to check if widget is related to spesific kernel/spesific notebook, if notebook is related to spesific kernel?](https://discourse.jupyter.org/t/how-to-check-if-widget-is-related-to-spesific-kernel-spesific-notebook-if-notebook-is-related-to-spesific-kernel/22760)

<div class="topic-metadata">

**Author:** [@Terlan](https://discourse.jupyter.org/u/Terlan)\
**Replies:** 0\
**Last updated:** [December 6, 2023, 10:49am UTC](https://discourse.jupyter.org/t/how-to-check-if-widget-is-related-to-spesific-kernel-spesific-notebook-if-notebook-is-related-to-spesific-kernel/22760 "2023-12-06T10:49:19Z")

</div>

Hi, I want to check if widget is related to spesific kernel/spesific notebook, if notebook is related to spesific kernel. Purpose: when I shutdown kernel, I should programatically delete related notebook to it + dispose …

---

## [How to list files in a dir in jupyterlab?](https://discourse.jupyter.org/t/how-to-list-files-in-a-dir-in-jupyterlab/22726)

<div class="topic-metadata">

**Author:** [@Terlan](https://discourse.jupyter.org/u/Terlan)\
**Replies:** 0\
**Last updated:** [December 5, 2023, 11:30am UTC](https://discourse.jupyter.org/t/how-to-list-files-in-a-dir-in-jupyterlab/22726 "2023-12-05T11:30:51Z")

</div>

Hi, I want to be able to read directory and list all the files inside in my react widget. How can I achieve that? Thanks.

---

## [Widget Problem that breaks Jupyter](https://discourse.jupyter.org/t/widget-problem-that-breaks-jupyter/22712)

<div class="topic-metadata">

**Author:** [@hx2A](https://discourse.jupyter.org/u/hx2A)\
**Replies:** 0\
**Last updated:** [December 4, 2023, 3:06pm UTC](https://discourse.jupyter.org/t/widget-problem-that-breaks-jupyter/22712 "2023-12-04T15:06:32Z")

</div>

I am having a problem my Jupyter widget and I believe it is a 3.x to 4.x migration problem. I’ve been struggling with this and would it if I could get some help. At the present state, installing my dev package prevents …

---

## [How to delete p-Widget, lm-Widget classes from ipywidgets (custom widgets)](https://discourse.jupyter.org/t/how-to-delete-p-widget-lm-widget-classes-from-ipywidgets-custom-widgets/22651)

<div class="topic-metadata">

**Author:** [@Terlan](https://discourse.jupyter.org/u/Terlan)\
**Replies:** 4\
**Last updated:** [December 3, 2023, 4:39pm UTC](https://discourse.jupyter.org/t/how-to-delete-p-widget-lm-widget-classes-from-ipywidgets-custom-widgets/22651 "2023-12-03T16:39:44Z")

</div>

Hi, I would love to be able to delete p-Widget, lm-Widget or any added auto added classes from my custom ipywidgets and only keep my own classes. How can I achieve that? Thanks

---

## [How can I add custom React widgets to jupyterlab top toolbar(or toolbar within panels)?](https://discourse.jupyter.org/t/how-can-i-add-custom-react-widgets-to-jupyterlab-top-toolbar-or-toolbar-within-panels/22682)

<div class="topic-metadata">

**Author:** [@Terlan](https://discourse.jupyter.org/u/Terlan)\
**Replies:** 1\
**Last updated:** [December 3, 2023, 12:52pm UTC](https://discourse.jupyter.org/t/how-can-i-add-custom-react-widgets-to-jupyterlab-top-toolbar-or-toolbar-within-panels/22682 "2023-12-03T12:52:23Z")

</div>

Hi, I would love to be able to add custom React widgets to jupyterlab toolbar ( for example radix ui dropdown, or custom switch component)? How can I achieve that? Thanks

---

## [How to close ipw output widget programatically?](https://discourse.jupyter.org/t/how-to-close-ipw-output-widget-programatically/22653)

<div class="topic-metadata">

**Author:** [@Terlan](https://discourse.jupyter.org/u/Terlan)\
**Replies:** 0\
**Last updated:** [December 1, 2023, 7:35am UTC](https://discourse.jupyter.org/t/how-to-close-ipw-output-widget-programatically/22653 "2023-12-01T07:35:03Z")

</div>

dispose, hide, clear output… and so on didn’t work for me to close the output dialog widget.

---

## [How to listen to theme changes on jlab?](https://discourse.jupyter.org/t/how-to-listen-to-theme-changes-on-jlab/22598)

<div class="topic-metadata">

**Author:** [@Terlan](https://discourse.jupyter.org/u/Terlan)\
**Replies:** 1\
**Last updated:** [November 30, 2023, 7:21am UTC](https://discourse.jupyter.org/t/how-to-listen-to-theme-changes-on-jlab/22598 "2023-11-30T07:21:20Z")

</div>

I want to be able to listen to theme changes and update my React widget colors according to that. How can I achieve that? thanks

---

## [Display ipywidgets in JupyterLab examples](https://discourse.jupyter.org/t/display-ipywidgets-in-jupyterlab-examples/22590)

<div class="topic-metadata">

**Author:** [@pplonski](https://discourse.jupyter.org/u/pplonski)\
**Replies:** 0\
**Last updated:** [November 27, 2023, 11:53am UTC](https://discourse.jupyter.org/t/display-ipywidgets-in-jupyterlab-examples/22590 "2023-11-27T11:53:13Z")

</div>

I’m looking for help/tips on how to display ipywidgets in examples provided in JupyterLab repository. When I run examples/app and try to display widget I got only text: Here is the GitHub issue ipywidgets are not wor…

---

## [Voila not rendering any widget while all working properly on Jupyter](https://discourse.jupyter.org/t/voila-not-rendering-any-widget-while-all-working-properly-on-jupyter/22529)

<div class="topic-metadata">

**Author:** [@bbsrn](https://discourse.jupyter.org/u/bbsrn)\
**Replies:** 5\
**Last updated:** [November 22, 2023, 7:55pm UTC](https://discourse.jupyter.org/t/voila-not-rendering-any-widget-while-all-working-properly-on-jupyter/22529 "2023-11-22T19:55:26Z")

</div>

I am using a bunch of ipywidgets in my notebook. Voila gets stuck at “Running …” phase to spin forever, while working properly on Jupyter Lab. I don’t have an issue with my voila setup, because if I put some print statem…

---

## [How to open with csvtable programmatically?](https://discourse.jupyter.org/t/how-to-open-with-csvtable-programmatically/22489)

<div class="topic-metadata">

**Author:** [@Terlan](https://discourse.jupyter.org/u/Terlan)\
**Replies:** 1\
**Last updated:** [November 20, 2023, 9:18pm UTC](https://discourse.jupyter.org/t/how-to-open-with-csvtable-programmatically/22489 "2023-11-20T21:18:44Z")

</div>

I want to give a path to .csv file on my extension and have jupyterlab open that path with csvviewer. How can I achieve it?

---

## [Panel Chat Components](https://discourse.jupyter.org/t/panel-chat-components/22493)

<div class="topic-metadata">

**Author:** [@MarcSkovMadsen](https://discourse.jupyter.org/u/MarcSkovMadsen)\
**Replies:** 0\
**Last updated:** [November 20, 2023, 8:27am UTC](https://discourse.jupyter.org/t/panel-chat-components/22493 "2023-11-20T08:27:35Z")

</div>

Panel v1.3.0 now provides the ChatMessage, ChatFeed and ChatInterface widgets. Check out the new chat components Panel Chat Examples Panel Chat Examples Blog Post by the community Holoviz Panel 1.30 NEW Chat Inter…

---

## [How to return React custom renderer state in showDialog promise?](https://discourse.jupyter.org/t/how-to-return-react-custom-renderer-state-in-showdialog-promise/22445)

<div class="topic-metadata">

**Author:** [@Terlan](https://discourse.jupyter.org/u/Terlan)\
**Replies:** 3\
**Last updated:** [November 17, 2023, 12:15pm UTC](https://discourse.jupyter.org/t/how-to-return-react-custom-renderer-state-in-showdialog-promise/22445 "2023-11-17T12:15:36Z")

</div>

Hi, I want to create custom renderer for showDialog with React and most importantly the state on react component should be returned on promise result as well. how can i achieve that?

---

## [How to send data to kernel with ipywidget (without initializing the widget on notebook)](https://discourse.jupyter.org/t/how-to-send-data-to-kernel-with-ipywidget-without-initializing-the-widget-on-notebook/22357)

<div class="topic-metadata">

**Author:** [@Terlan](https://discourse.jupyter.org/u/Terlan)\
**Replies:** 0\
**Last updated:** [November 13, 2023, 7:37am UTC](https://discourse.jupyter.org/t/how-to-send-data-to-kernel-with-ipywidget-without-initializing-the-widget-on-notebook/22357 "2023-11-13T07:37:45Z")

</div>

Lets say I have an Ipywidget widget which is created both on js and python side. But i want to send data to kernel without initializing my widget on jupyterlab notebook. I want to send data from javascript side of the wi…

[Previous page](https://discourse.jupyter.org/c/widgets/46.md)

[Next page](https://discourse.jupyter.org/c/widgets/46.md?page=2)
