# Widgets

**URL:** https://discourse.jupyter.org/c/widgets/46.md

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

---

## [About the Widgets category](https://discourse.jupyter.org/t/about-the-widgets-category/8256)

<div class="topic-metadata">

**Author:** [@choldgraf](https://discourse.jupyter.org/u/choldgraf)\
**Replies:** 0

</div>

Discuss widgets and interactive outputs in the Jupyter ecosystem.

---

## [How to create a custom ipywidget in python and not in javascipt?](https://discourse.jupyter.org/t/how-to-create-a-custom-ipywidget-in-python-and-not-in-javascipt/37918)

<div class="topic-metadata">

**Author:** [@SergeWeinstock](https://discourse.jupyter.org/u/SergeWeinstock)\
**Replies:** 2\
**Last updated:** [March 9, 2026, 5:28am UTC](https://discourse.jupyter.org/t/how-to-create-a-custom-ipywidget-in-python-and-not-in-javascipt/37918 "2026-03-09T05:28:18Z")

</div>

Hi, I’m trying to create an image carousel. import ipywidgets as widgets from ipywidgets import register @register class ImageCarousel(widgets.DOMWidget): def \_\_init\_\_(self, images, image\_width=500): self.\_…

---

## [Course to learn to use widgets](https://discourse.jupyter.org/t/course-to-learn-to-use-widgets/38121)

<div class="topic-metadata">

**Author:** [@ANA\_RUFINA\_HERRERA\_S](https://discourse.jupyter.org/u/ANA_RUFINA_HERRERA_S)\
**Replies:** 2\
**Last updated:** [January 8, 2026, 9:53pm UTC](https://discourse.jupyter.org/t/course-to-learn-to-use-widgets/38121 "2026-01-08T21:53:58Z")

</div>

Hi! I am looking for an online course to learn how to use widgets in a jupyter notebook. My goal is to implement them in a thermodynamics class. Does anybody know about an online course with certification?

---

## [How do you remove the counter in fileupload in ipywidgets 8+?](https://discourse.jupyter.org/t/how-do-you-remove-the-counter-in-fileupload-in-ipywidgets-8/38292)

<div class="topic-metadata">

**Author:** [@Bigpimpin](https://discourse.jupyter.org/u/Bigpimpin)\
**Replies:** 0\
**Last updated:** [January 8, 2026, 7:12pm UTC](https://discourse.jupyter.org/t/how-do-you-remove-the-counter-in-fileupload-in-ipywidgets-8/38292 "2026-01-08T19:12:28Z")

</div>

How do we remove the counter widget in fileupload in ipywidgets? Quoting user kebwi here from FileUpload displayed counter should be optional · Issue #2904 · jupyter-widgets/ipywidgets · GitHub Not all users necessaril…

---

## [Does ipywidgets support multiple button clicks?](https://discourse.jupyter.org/t/does-ipywidgets-support-multiple-button-clicks/38012)

<div class="topic-metadata">

**Author:** [@nasrin\_begum\_pathan](https://discourse.jupyter.org/u/nasrin_begum_pathan)\
**Replies:** 3\
**Last updated:** [October 10, 2025, 6:42pm UTC](https://discourse.jupyter.org/t/does-ipywidgets-support-multiple-button-clicks/38012 "2025-10-10T18:42:37Z")

</div>

I am trying to rewrite nasrin1748.github.io/try2/ this code using ipywidgets.But I have never used multiple buttons in ipywidget button click.Is it possible for ipywidget to support multiple buttons clicks?

---

## [My latest project using copilot](https://discourse.jupyter.org/t/my-latest-project-using-copilot/38008)

<div class="topic-metadata">

**Author:** [@nasrin\_begum\_pathan](https://discourse.jupyter.org/u/nasrin_begum_pathan)\
**Replies:** 3\
**Last updated:** [October 10, 2025, 2:54pm UTC](https://discourse.jupyter.org/t/my-latest-project-using-copilot/38008 "2025-10-10T14:54:47Z")

</div>

Project My Latest project using copilot.Refer to youtube videos. PDF project-Part1 PDF project-part2 PDF project-part3 PDF project - Part 4 PDF project-part5 PDF project-Part 6 PDF project - part 7 PDF project-Pa…

---

## [Is it possible to display pandas dataframe on button click without using print?](https://discourse.jupyter.org/t/is-it-possible-to-display-pandas-dataframe-on-button-click-without-using-print/37900)

<div class="topic-metadata">

**Author:** [@nasrin\_begum\_pathan](https://discourse.jupyter.org/u/nasrin_begum_pathan)\
**Replies:** 5\
**Last updated:** [September 16, 2025, 1:52am UTC](https://discourse.jupyter.org/t/is-it-possible-to-display-pandas-dataframe-on-button-click-without-using-print/37900 "2025-09-16T01:52:41Z")

</div>

import ipywidgets as widgets from IPython.display import display, clear\_output import pandas as pd Create a button and an output area button = widgets.Button(description=“Click Me”) out = widgets.Output() Define the…

---

## [Is there a way to detect when running in a with ipywidgets.Output() block?](https://discourse.jupyter.org/t/is-there-a-way-to-detect-when-running-in-a-with-ipywidgets-output-block/21188)

<div class="topic-metadata">

**Author:** [@avylove](https://discourse.jupyter.org/u/avylove)\
**Replies:** 2\
**Last updated:** [September 9, 2025, 9:06am UTC](https://discourse.jupyter.org/t/is-there-a-way-to-detect-when-running-in-a-with-ipywidgets-output-block/21188 "2025-09-09T09:06:04Z")

</div>

I have a library that uses IPython.display.HTML and it works great for most users. However, when a user wants to use with ipywidgets.Output(), it would be better to use ipywidgets.HTML. Is there a way to detect when this…

---

## [Save and restore widget values... the right way?](https://discourse.jupyter.org/t/save-and-restore-widget-values-the-right-way/37719)

<div class="topic-metadata">

**Author:** [@dougie](https://discourse.jupyter.org/u/dougie)\
**Replies:** 1\
**Last updated:** [August 20, 2025, 8:39pm UTC](https://discourse.jupyter.org/t/save-and-restore-widget-values-the-right-way/37719 "2025-08-20T20:39:47Z")

</div>

Context: a financial planning notebook with many input widgets For a few years I’ve been using a simple method to save and restore widget values to assist a user with leaving and returning to the notebook. Typically, on…

---

## [What’s the Best Way to Use Widgets for Real-Time Data in Jupyter?](https://discourse.jupyter.org/t/what-s-the-best-way-to-use-widgets-for-real-time-data-in-jupyter/37512)

<div class="topic-metadata">

**Author:** [@fopodon](https://discourse.jupyter.org/u/fopodon)\
**Replies:** 1\
**Last updated:** [August 12, 2025, 2:27pm UTC](https://discourse.jupyter.org/t/what-s-the-best-way-to-use-widgets-for-real-time-data-in-jupyter/37512 "2025-08-12T14:27:06Z")

</div>

Hello I have been building a Jupyter dashboard where data updates often sometimes every few seconds. I want to show these changes live using widgets like sliders / dropdowns; without having to manually re-run the notebo…

---

## [Interactive plot with ipywidgets and pyvista trame hangs after interaction](https://discourse.jupyter.org/t/interactive-plot-with-ipywidgets-and-pyvista-trame-hangs-after-interaction/36711)

<div class="topic-metadata">

**Author:** [@steffen](https://discourse.jupyter.org/u/steffen)\
**Replies:** 2\
**Last updated:** [July 13, 2025, 5:13pm UTC](https://discourse.jupyter.org/t/interactive-plot-with-ipywidgets-and-pyvista-trame-hangs-after-interaction/36711 "2025-07-13T17:13:52Z")

</div>

After first interaction with an interactive Pyvista Trame plot, Jupyterlab hangs . The kernel status stays ‘busy’. In the examle below, I tried to choose the plot with ipywidget checkboxes. After running the cell, the t…

---

## [Widget Button doesn't Display](https://discourse.jupyter.org/t/widget-button-doesnt-display/36374)

<div class="topic-metadata">

**Author:** [@nasrin\_begum\_pathan](https://discourse.jupyter.org/u/nasrin_begum_pathan)\
**Replies:** 10\
**Last updated:** [June 30, 2025, 4:44am UTC](https://discourse.jupyter.org/t/widget-button-doesnt-display/36374 "2025-06-30T04:44:58Z")

</div>

Widget button displays when i use jupyter notebook but not jupyterlab. The image is the jupyter notebook image My jupyterlab shows VBox(children=(Button(description=‘My Button’, style=ButtonStyle()), Output()))

---

## [\[Solved by complete reinstall into new venv\] Plotly no longer working in notebooks exported to html](https://discourse.jupyter.org/t/solved-by-complete-reinstall-into-new-venv-plotly-no-longer-working-in-notebooks-exported-to-html/35716)

<div class="topic-metadata">

**Author:** [@gutow](https://discourse.jupyter.org/u/gutow)\
**Replies:** 3\
**Last updated:** [June 2, 2025, 4:08pm UTC](https://discourse.jupyter.org/t/solved-by-complete-reinstall-into-new-venv-plotly-no-longer-working-in-notebooks-exported-to-html/35716 "2025-06-02T16:08:24Z")

</div>

As of Plotly 6+ with Jupyterlab 4.3.5 (4.4 as well) when a notebook is exported to html the Plotly widgets are not rendered. They do render properly upon opening the notebook in Jupyterlab. I get one warning on the html …

---

## [Ipydatagrid doesn't display data, only tiny scroll bars unless I save and reload from disk](https://discourse.jupyter.org/t/ipydatagrid-doesnt-display-data-only-tiny-scroll-bars-unless-i-save-and-reload-from-disk/34767)

<div class="topic-metadata">

**Author:** [@easp](https://discourse.jupyter.org/u/easp)\
**Replies:** 0\
**Last updated:** [April 22, 2025, 3:23pm UTC](https://discourse.jupyter.org/t/ipydatagrid-doesnt-display-data-only-tiny-scroll-bars-unless-i-save-and-reload-from-disk/34767 "2025-04-22T15:23:44Z")

</div>

When I try to display a simple dataframe using ipydatagrid I just get some small scroll bars: It’ll usually display correctly with this toy dataframe. import pandas as pd from ipydatagrid import DataGrid from IPytho…

---

## [Intermittent problems rendering saved widget states](https://discourse.jupyter.org/t/intermittent-problems-rendering-saved-widget-states/33106)

<div class="topic-metadata">

**Author:** [@gutow](https://discourse.jupyter.org/u/gutow)\
**Replies:** 1\
**Last updated:** [March 21, 2025, 5:34pm UTC](https://discourse.jupyter.org/t/intermittent-problems-rendering-saved-widget-states/33106 "2025-03-21T17:34:29Z")

</div>

I’m looking for trouble shooting advice. I have a small installation of TLJH that I use for a class. We are using some ipywidget based tools, with “Save Widget State Automatically” set. I have set saving as the default f…

---

## [Output formatted text in widget](https://discourse.jupyter.org/t/output-formatted-text-in-widget/33421)

<div class="topic-metadata">

**Author:** [@Calab](https://discourse.jupyter.org/u/Calab)\
**Replies:** 3\
**Last updated:** [March 5, 2025, 1:37am UTC](https://discourse.jupyter.org/t/output-formatted-text-in-widget/33421 "2025-03-05T01:37:06Z")

</div>

I’m starting out using widgets in my Jupyter notebooks. I have the need to output some text results in a widget. I will be bolding and highlighting particular parts of the output. HTML would be ideal. I’ve seen some web…

---

## [Widget fails to display response from LLM](https://discourse.jupyter.org/t/widget-fails-to-display-response-from-llm/31206)

<div class="topic-metadata">

**Author:** [@Xiaoyu\_Fisher](https://discourse.jupyter.org/u/Xiaoyu_Fisher)\
**Replies:** 0\
**Last updated:** [December 26, 2024, 3:03am UTC](https://discourse.jupyter.org/t/widget-fails-to-display-response-from-llm/31206 "2024-12-26T03:03:09Z")

</div>

I am running a test from phidata module to check the response from LLM using interactive mode in vs code: from phi.agent import Agent from phi.model.groq import Groq from dotenv import load\_dotenv load\_dotenv() agen…

---

## [Rendering Latex/Math with ipywidgets.HTMLMath not working](https://discourse.jupyter.org/t/rendering-latex-math-with-ipywidgets-htmlmath-not-working/33260)

<div class="topic-metadata">

**Author:** [@jorgengaldal](https://discourse.jupyter.org/u/jorgengaldal)\
**Replies:** 0\
**Last updated:** [February 26, 2025, 11:58am UTC](https://discourse.jupyter.org/t/rendering-latex-math-with-ipywidgets-htmlmath-not-working/33260 "2025-02-26T11:58:21Z")

</div>

Hi! I’m using Jupyter Book and Thebe-lite with Pyodide (throught Teachbooks) and when I try to use ipywidgets.HTMLMath, this doesn’t render my math or latex. The book uses MathJax3 to render latex and it is rendered co…

---

## [Plot to Output in Tab rendering in cell](https://discourse.jupyter.org/t/plot-to-output-in-tab-rendering-in-cell/32351)

<div class="topic-metadata">

**Author:** [@jpark](https://discourse.jupyter.org/u/jpark)\
**Replies:** 6\
**Last updated:** [February 2, 2025, 6:06pm UTC](https://discourse.jupyter.org/t/plot-to-output-in-tab-rendering-in-cell/32351 "2025-02-02T18:06:50Z")

</div>

I would like to create a Jupyter Lab UI with Output Tab(s) that plot interactively to an Output Tab based on user input callback. Printing to an Output Tab works as expected, plotting does not seem to place the plot in …

---

## [Widgets fail to render Debian 12 J Lab 4.3](https://discourse.jupyter.org/t/widgets-fail-to-render-debian-12-j-lab-4-3/31264)

<div class="topic-metadata">

**Author:** [@jpark](https://discourse.jupyter.org/u/jpark)\
**Replies:** 8\
**Last updated:** [February 1, 2025, 11:39am UTC](https://discourse.jupyter.org/t/widgets-fail-to-render-debian-12-j-lab-4-3/31264 "2025-02-01T11:39:39Z")

</div>

Greetings all. I’m new here, instigated by an OS upgrade and migration from notebook to Lab. I have an ipywidgets GUI frontend for the pyEDM · PyPI package, and would like to bring it in compliance with J Lab. However, …

---

## [Programmatically update widgets?](https://discourse.jupyter.org/t/programmatically-update-widgets/31746)

<div class="topic-metadata">

**Author:** [@landoskape](https://discourse.jupyter.org/u/landoskape)\
**Replies:** 3\
**Last updated:** [January 15, 2025, 8:04pm UTC](https://discourse.jupyter.org/t/programmatically-update-widgets/31746 "2025-01-15T20:04:03Z")

</div>

I’m writing something where I sometimes need to programmatically change the value of widgets. Sample code: # Update single widgets without triggering callbacks widget.unobserve\_all() widget.value = new\_value # doesn't w…

---

## [Extension had issues rendering outputs from saved .ipynb after upgrading to 4.2](https://discourse.jupyter.org/t/extension-had-issues-rendering-outputs-from-saved-ipynb-after-upgrading-to-4-2/31687)

<div class="topic-metadata">

**Author:** [@jhl2015](https://discourse.jupyter.org/u/jhl2015)\
**Replies:** 0\
**Last updated:** [January 13, 2025, 4:35pm UTC](https://discourse.jupyter.org/t/extension-had-issues-rendering-outputs-from-saved-ipynb-after-upgrading-to-4-2/31687 "2025-01-13T16:35:12Z")

</div>

Hi, We have an extension that renders sql execution results using lumino/datagrid. It worked fine for Jupyterlab 3.X for both rendering execution results and outputs saved in .ipynb files. After we upgrade it to Jupyter…

---

## [Widgets oddity: sometimes not working](https://discourse.jupyter.org/t/widgets-oddity-sometimes-not-working/31342)

<div class="topic-metadata">

**Author:** [@vsessink](https://discourse.jupyter.org/u/vsessink)\
**Replies:** 0\
**Last updated:** [January 2, 2025, 8:49pm UTC](https://discourse.jupyter.org/t/widgets-oddity-sometimes-not-working/31342 "2025-01-02T20:49:31Z")

</div>

Hi, I’ve got a bit of a strange situation. I’m running a JupyterLab with a reasonably simple Mamba environment (python, jupyterlab, pip - then a bunch of python packages; pandas, panel, bokeh, holoviews and the like), an…

---

## [Problem with Plotly output](https://discourse.jupyter.org/t/problem-with-plotly-output/30512)

<div class="topic-metadata">

**Author:** [@magn0t](https://discourse.jupyter.org/u/magn0t)\
**Replies:** 1\
**Last updated:** [December 3, 2024, 9:20am UTC](https://discourse.jupyter.org/t/problem-with-plotly-output/30512 "2024-12-03T09:20:40Z")

</div>

I have been playing around with Ross Rotordynamics in JupyterLab 4.2.6 (Python 3.12). It uses Plotly to render interactive images. At first everything worked fine, but something got meshed up and now it doesn’t render th…

---

## [How to install package and display pandas dataframe inside the tab?](https://discourse.jupyter.org/t/how-to-install-package-and-display-pandas-dataframe-inside-the-tab/29930)

<div class="topic-metadata">

**Author:** [@nasrin\_begum\_pathan](https://discourse.jupyter.org/u/nasrin_begum_pathan)\
**Replies:** 8\
**Last updated:** [November 13, 2024, 2:15pm UTC](https://discourse.jupyter.org/t/how-to-install-package-and-display-pandas-dataframe-inside-the-tab/29930 "2024-11-13T14:15:40Z")

</div>

import ipywidgets as widgets tab = widgets.Tab() import subprocess import sys def install(package): “”“Install a package using pip.”“” subprocess.check\_call(\[sys.executable, ‘-m’, ‘pip’, ‘install’, package\]) def m…

---

## [Playback effects reflected on sliders (ipywidgets)](https://discourse.jupyter.org/t/playback-effects-reflected-on-sliders-ipywidgets/29393)

<div class="topic-metadata">

**Author:** [@thepian](https://discourse.jupyter.org/u/thepian)\
**Replies:** 1\
**Last updated:** [October 31, 2024, 5:17pm UTC](https://discourse.jupyter.org/t/playback-effects-reflected-on-sliders-ipywidgets/29393 "2024-10-31T17:17:49Z")

</div>

I’ve got a timeline interface with playback controls and detail sliders to adjust the rendered frame. The user either adjusts the details of the current frame or plays back recorded frames. This gives me a circular depen…

---

## ["Error displaying widget: model not found" only by ipysigma](https://discourse.jupyter.org/t/error-displaying-widget-model-not-found-only-by-ipysigma/25374)

<div class="topic-metadata">

**Author:** [@padad](https://discourse.jupyter.org/u/padad)\
**Replies:** 2\
**Last updated:** [October 17, 2024, 6:13pm UTC](https://discourse.jupyter.org/t/error-displaying-widget-model-not-found-only-by-ipysigma/25374 "2024-10-17T18:13:45Z")

</div>

Both when I use plotly and ipywidgets directly, everything works as intended. However, when I use ipysigma as in the example code, I get Error displaying widget: model not found. I have also tried jupyter labextension en…

---

## [How to implement a programming language to the interactive output?](https://discourse.jupyter.org/t/how-to-implement-a-programming-language-to-the-interactive-output/28321)

<div class="topic-metadata">

**Author:** [@Enno](https://discourse.jupyter.org/u/Enno)\
**Replies:** 2\
**Last updated:** [September 17, 2024, 9:14am UTC](https://discourse.jupyter.org/t/how-to-implement-a-programming-language-to-the-interactive-output/28321 "2024-09-17T09:14:49Z")

</div>

Hi there! I recently used Jupyter in an SAP-Workshop and I am fascinated about the ability to run program code in the editor and directly see the results. Can someone please explain what things need to be done/ conside…

---

## [Project showcase: Convert Jupyter notebooks to interactive dashboards with Voici/WASM](https://discourse.jupyter.org/t/project-showcase-convert-jupyter-notebooks-to-interactive-dashboards-with-voici-wasm/28143)

<div class="topic-metadata">

**Author:** [@edublancas](https://discourse.jupyter.org/u/edublancas)\
**Replies:** 13\
**Last updated:** [September 11, 2024, 5:19pm UTC](https://discourse.jupyter.org/t/project-showcase-convert-jupyter-notebooks-to-interactive-dashboards-with-voici-wasm/28143 "2024-09-11T17:19:09Z")

</div>

Hey Jupyter community! I’ve been working on a tool that lets you easily convert Jupyter notebooks into interactive dashboards, and I’d love to get your feedback. https://nb2dash.ploomberapp.io You can see a sample dash…

---

## [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\]…

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