Questions tagged [ipywidgets]

IPython widgets for the Jupyter Notebook

Read the docs

ipywidgets on github

973 questions
3
votes
3 answers

How could define index or number of clicked row in pandas dataframe output?

I want to make some form on ipywidgets, which show values of particular row of pandas dataframe in its inputs. To make row selection and displaying in form more interactive I need to handle somehow clicking in displayed dataframe. Virtually, I want…
Alex-droid AD
  • 635
  • 1
  • 6
  • 14
3
votes
2 answers

Align ipywidget button to center

I´m looking to align to the center a button object from the ipywidget function. Here´s a sample of the code I´m using bt = widgets.Button(layout=Layout(width='180px'),style = {'description_width': '25%'}) b_config_save = widgets.Button( …
Lucas Mengual
  • 263
  • 6
  • 21
3
votes
1 answer

ipywidgets doesn't show plot before interaction

Unless the user interacts with widget, ipywidgets doesn't show the plot. How can I solve this? Perhaps if I could update a slider value using some code, the plot would show. I think this issue only arises when the Layout configuration method is…
Miladiouss
  • 4,270
  • 1
  • 27
  • 34
3
votes
1 answer

ipywidgets: Automatically update variable and run code after altering widget value

I have been trying to automatically update a variable and run a code snippet after altering a ipywidget. So far the only partial solution I have found is to declare a global variable kind of following the example on the github (here): import…
Gustavo
  • 65
  • 1
  • 6
3
votes
1 answer

Jupyter Notebook: duplicated scatter plot using when using ipywidgets

I'm trying to control the display of a scatter plot with a checkbox. When I built it using the interact function it worked as expected. The plot was shown or hidden based on the value in the checkbox. import matplotlib.pyplot as plt from ipywidgets…
ibli
  • 31
  • 2
3
votes
1 answer

ipywidgets with seaborn PairGrid plots

In a Jupyter Notebook I am visualizing the Iris dataset with seaborn in combination with ipywidgets. That works fine, except that is not that fast because the plots have to be rendered every time you select a new combination of the species…
René
  • 4,594
  • 5
  • 23
  • 52
3
votes
1 answer

jupyter notebook ipython widgets display as text

A colleague (and myself) are trying to write some python scripts to do some common calculation which will also need to be used by our other colleagues. In order to make these scripts easy to use we're creating a simple GUI using ipywidgets. However,…
Yorian
  • 2,002
  • 5
  • 34
  • 60
3
votes
1 answer

Larger drop down menu for ipywidgets interact

Is it possible to make the input form for the ipywidget interact larger? When I use the following code, for example, the field is to small for the title and it looks messy. # python code to run in jupyter notebook %pylab inline from ipywidgets…
Soerendip
  • 7,684
  • 15
  • 61
  • 128
3
votes
1 answer

update chart with ipywidgets:

I'm using seaborn on jupyter notebook and would like a slider to update a chart. My code is as follows: from ipywidgets import interact, interactive, fixed, interact_manual import numpy as np import seaborn as sns from IPython.display import…
Alexis Eggermont
  • 7,665
  • 24
  • 60
  • 93
3
votes
1 answer

Interactive Plotly Int Slider

Hi I'm fairly new to Python, Plotly and Jupyter Notebook. I would like to use a slider to select the number of days as the range in a query to which a graph is created from. My only issue is that I want the graph to automatically update on…
gcpreston
  • 135
  • 1
  • 12
3
votes
0 answers

Use ipython widgets to manipulate plots, that are constantly updated from within an infinite loop

Within an ipython notebook, using Jupyter I try to do a calculation, thats running for an extended period of time in a while loop. I use pyplot to show the current status of my calculation and I would like to be able to communicate with the…
3
votes
1 answer

Update ipywidget dropdown list from function in python

I am new to Python and I want to create an interactive dropdown list from an ipywidget. The main purpose is to update the dropdown list based on two other widgets. In the code below, the widget plotType will be updated based on the input from the…
user3550647
  • 119
  • 2
  • 7
3
votes
0 answers

Abstractions & Design Patterns for Complex IPython Widget Dashboards

The IPywidgets manual is very helpful for the most part, but is lacking some explanation about how one goes about creating complex dashboards. In particular, I am trying to figure our how to: Design abstractions to assist in building easily…
Ixxie
  • 1,393
  • 1
  • 9
  • 17
3
votes
1 answer

How to make one slider/widget update multiple plots in Bokeh/Python/Pywidgets?

Using Jupyter notebook, how to have one slider interactively update two independent functions in two figures? There is a link to a similar question without answer here. Using Bokeh Javascript Callback slider power example, I tried adding a second…
Ali Tarraf
  • 108
  • 1
  • 8
3
votes
0 answers

Jupyter notebook slides use cell output as slide

I'm making slides with jupyter notebook. For one slide I made a nice little interactive plot with ipython widgets. However the interactive plot is a cell's output not input. Is there a way to capture that cell's output an use it as a slide?
themantalope
  • 1,040
  • 11
  • 42