IPython widgets for the Jupyter Notebook
Questions tagged [ipywidgets]
973 questions
0
votes
1 answer
Jupyter Lab Extension installation warning (ipywidgets)
warning css-loader > cssnano > autoprefixer > browserslist@1.7.7:
Browserslist 2 could fail on reading Browserslist >3.0 config used in
other tools.
.. SNIP...
warning "@jupyterlab/vdom-extension >
@nteract/transform-vdom@1.1.1" has…

ArnuldOnData
- 557
- 5
- 15
0
votes
1 answer
Storing outputs of a function based on an interactive argument value
What I'm trying to do is the following. I have some function f(m) that I want to explore interactively for different values of m (for example using ipywidgets). For specific values of m, I'd like to store some string containing for example m in a…

user129412
- 765
- 1
- 6
- 19
0
votes
1 answer
ipywidgets.embed missing dependencies? Key error when run in venv
I am writing a script that simply asks the google api for the latitudes and longitudes for a list of addresses read in from a csv file and outputs an html with the googlemap widget embedded. Further I hoped to run pyinstaller in order to make this…

JMoravitz
- 722
- 1
- 5
- 11
0
votes
0 answers
ipywidgets.interact giving following error despite having recent versions of packages. Detailed breakdown given
Note: for anyone are experiencing the same issue, a temporary work around I am using is found here Bokeh, how to change column used for glyph colors with CustomJS callbacks? although this is not sufficient as the interact feature is needed
Any help…

HamishLacmane
- 88
- 1
- 11
0
votes
1 answer
How can I interactively update a latex equation using values set by a user with ipywidgets UI controls in Juypter?
I'm trying to display a multiline equation using values from a ipywidgets FloatBox input controls in a Jupyter Notebook. I want to be able to have the equation update either whenever the Floatbox controls are updated, or when the user presses a…

Ben Smith
- 85
- 2
- 11
0
votes
1 answer
display unicode in Html Widget of iPyWidgets
I want to show Unicode text (Persian text) in Jupiter. Currently, I use from HTML widget to show the text likes the following:
# title is unicode
title_value = widgets.HTML(value = title)
But, I've gotten the following error:
TraitError: Could not…

OmG
- 18,337
- 10
- 57
- 90
0
votes
1 answer
Using multiple sliders to manipulate curves in a single graph
I created the following Jupyter Notebook. Here three functions are shifted using three sliders. In the future I would like to generalise it to an arbitrary number of curves (i.e. n-curves). However, right now, the graph updating procedure is very…

A.M
- 13
- 4
0
votes
2 answers
Data selection using a button
I would like to create a button on a Jupyter Notebook in order to replace the if statement used in the following code:
from ipywidgets import interact
import ipywidgets as widgets
import numpy as np
import pandas as pd
import matplotlib.pyplot as…

A.M
- 13
- 4
0
votes
1 answer
Use Plotly and ipywidgets
I'm using plotly offline with ipywidgets and can't figure it out why the code below is not working:
op=widgets.Output()
with op:
iplot([{"x": [1,2,3],"y": [3,1,6]}])
box=widgets.VBox([widget1,op]
display(box)
If I call display(op) alone…

Olivier Dagnac
- 5
- 1
- 2
0
votes
1 answer
How to prevent changing second ipwidget to call interactive function twice?
When I update the second slider whenever the first slider changes, then the function f is called twice
I understand why this is happening, but it causes some unwanted flicker in the output since it takes a bit to calculate what I actually want to…

Peter Hansen
- 464
- 3
- 9
0
votes
1 answer
Python Convert widget Box into pandas Dataframe
I am trying to assign interactive widgets box output to dataframe (in the code it is df2). I would like to have dataframe (df2) values change anytime inputs are changed in the box. Could you please advise how code should be modified?
Please note…

Martin
- 133
- 13
0
votes
0 answers
Can't call functions in ipywidgets.HTML
so I have been working with jupyter notebook using python3, and I ran into a problem that I have seaching the internet for so many hours trying to figure out.
The problem is why does this
from ipywidgets import HTML
HTML('''

Albatross
- 3
- 1
- 3
0
votes
1 answer
how to two-way link between a python object and an ipywidget
Dear ipywidgets gurus,
I want to set up a link between the attribute of some python object and the value of some ipywidget:
import ipywidgets as ipyw
w = ipyw.IntSlider(42)
class Foo(object):
def __init__(self, i=0):
self.i = i # not…

jmborr
- 1,215
- 2
- 13
- 23
0
votes
1 answer
Interactive jupyter plot using ipywidgets at its left side
I've lot of ipywidgets sliders connected to a graph and I'd like to have them on the left side of the layout. In addition to that, the output graph shall be on the right side in order to optimize space and increase usability.
The result without…

Nicolas Martin
- 1
- 2
0
votes
1 answer
Ipython Widgets (how to make a timer)
I made this timer widget that works the way I want, but it locks up the notebook so I can't execute other code cells at the same time.
Here's an example of what I mean:
Any ideas for getting the widget to execute in the background?
In case it…

David Skarbrevik
- 675
- 3
- 9
- 19