Questions tagged [ipywidgets]

IPython widgets for the Jupyter Notebook

Read the docs

ipywidgets on github

973 questions
4
votes
1 answer

Cannot install the "ipywidgets" Jupyter Lab Extension on AWS sagemaker

To install Jupyter Lab Extension on AWS sagemaker, You need to follow https://github.com/aws-samples/amazon-sagemaker-notebook-instance-lifecycle-config-samples/tree/master/scripts. And then create the lifecycle configuration accordingly. I did it…
4
votes
1 answer

How to create dependent dropdowns using Jupyter Widgets to get data from dict?

I am trying to assign two variables with values using Jupyter Dropdowns where the first dropdown is a data center, and the second is a site available within this data center so that I can use these variables further in the code. I tried multiple…
4
votes
0 answers

How to access individual style of ToggleButtons?

I'm trying to temporarily change the color of a button in a ipywidgets.ToggleButtons' list, but I can't access the individual elements in a ToggleButtons' instance. Hence I'm missing a def get_child_of() kind of function from IPython.display import…
Marc Moreaux
  • 190
  • 1
  • 9
4
votes
1 answer

observe method of ipywidget slider doesn't work

I am trying to call function on slider change, while it is changing with animation. And it does not work, it calles function only when I change manually by mouse. Here is my code: import ipywidgets as widgets play = widgets.Play( value=0, …
4
votes
0 answers

ipywidgets not rendering with nbconvert using jupyter/scipy-notebook docker image

When I convert a notebook containing an ipywidget, the widget doesn't render, only the label is printed. Is it possible to get nbconvert to render the ipywidget when converting to html or pdf? I don't need interactivity, just a static image. Here is…
jScience
  • 68
  • 7
4
votes
1 answer

update of dropdown widget (ipywidget)

I'm using interactive ipywidget dropdown to filter a certain amount of datas and to plot graph with plotly. My problem is on the update of the dropdown widget : here is a simplified example : import ipywidgets as widgets from ipywidgets import…
4
votes
2 answers

What exactly is the purpose of the JupyterLab extension of ipywidgets?

According to this: https://ipywidgets.readthedocs.io/en/stable/user_install.html , in order to use ipywidgets on a legacy Jupyter Notebook, one has to install the appropriate Jupyter Notebook extension like this: pip install ipywidgets jupyter…
AstrOne
  • 3,569
  • 7
  • 32
  • 54
4
votes
1 answer

How to interactively update IPywidgets container (VBox, HBox)?

When I try to update a container that contains other dynamically created container it doesn't change. I tried different options but in the current one I defined the variables holding the containers before the update function and call this function…
Patrick
  • 63
  • 9
4
votes
2 answers

How to display ipywidgets.Dropdown without a value selected

No question anymore. The problem is older ipywidgets version behaviour that looks to be fixed in version 7. The ipywidgets.Dropdown on its own picks up the first value out of the options list.I would like to display the widget without a value…
DShevelev
  • 71
  • 1
  • 1
  • 5
4
votes
1 answer

Jupyter Notebook + iPython Widgets - Dynamic Number of Widgets

I'm working on a script that will eventually allow for data exploration using ipywidgets. I've made some parts work for a dynamic number of columns someone may be interested in filtering on, but implementing the interact function in a dynamic manner…
alpacafondue
  • 353
  • 3
  • 16
4
votes
1 answer

Using ipywidgets with plotly in jupyter notebook

I want to use the offline plotting of plotly inside a jupyter notebook and want to manipulate or redraw the plot by using widgets from ipywidgets. Unfortunately I do not manage to update the plots appropiately: from ipywidgets import widgets, HBox,…
user6475988
  • 43
  • 1
  • 3
4
votes
1 answer

ipywidgets + matplotlib cannot clear old outputs

%matplotlib inline import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl from ipywidgets import interact, FloatSlider, RadioButtons amplitude_slider = FloatSlider(min=0.1, max=1.0, step=0.1, value=0.2) color_buttons =…
jaycode
  • 2,926
  • 5
  • 35
  • 71
4
votes
0 answers

Interactive Timer in Jupyter Notebook

I have a function which records data and takes a while to complete. While the data is being recorded, I would like to have a button which, upon being pressed, displays how much time has elapsed since the data acquisition has started. Is this…
JP-Ellis
  • 407
  • 5
  • 15
4
votes
1 answer

ipywidgets - display next value in list after clicking

I'm trying to use ipywidgets in order to display next value in my list (in Jupyter notebook) given as display_vals after clicking the button. However, with the following code snippet, I got error as local variable 'i' referenced before…
titipata
  • 5,321
  • 3
  • 35
  • 59
4
votes
1 answer

how to make widgets in jupyter notebook scrollable?

For some reason, I want to my HTML widget to have fixed height, no matter how many lines there are in the widget. If the lines are too many to fit into the height, ideally one can scroll to see all the lines. I tried something like the following,…
RNA
  • 146,987
  • 15
  • 52
  • 70