IPython widgets for the Jupyter Notebook
Questions tagged [ipywidgets]
973 questions
0
votes
1 answer
Jupyter Notebook JSON is invalid
I have installed Anaconda3 and am using an env called 'myenv'. In that env I have install ipywidgets
conda install --name myenv -c conda-forge ipywidgets
I can see that ipywidgets is installed in this env
ipywidgets 7.1.2 …

proximacentauri
- 1,749
- 5
- 25
- 53
0
votes
1 answer
Uncheck other checkbox on one checked
I wrote this code (actually using Jupyter-Notebook):
import random
from ipywidgets import widgets
for ind in range(0,10):
print('Some text'+str(ind))
cb_inner = []
a = random.randint(0,3)
for el in range(0,3):
cb_value =…

Mikhail_Sam
- 10,602
- 11
- 66
- 102
0
votes
0 answers
Increase margins between plot and dropdown widget in Jupyter notebook.
I'm basically just trying to place some room between my plots and a dropdown widget in a Jupyter notebook. Currently the plots are covering up the dropdown boxes. Here is link to the notebook on Kaggle- …

Sam Dotson
- 35
- 1
- 6
0
votes
0 answers
get ipywidgets to work on Safari
I installed latest ipywidgets with conda-forge (conda install -c conda-forge ipywidgets), and am running the simplest example from the docs:
from ipywidgets import interact
def f(x):
return x
interact(f, x=10);
The only thing that happens is…

Mark Bakker
- 799
- 1
- 6
- 15
0
votes
1 answer
push_notebook does not update bokeh chart
It is kind of a complex example, but I desperately hope to get help...
I'm using jupyter-notebook 5.2.0, bokeh version is 0.12.9 and ipywidgets is 7.0.1.
Here is my DataFrame df:
import numpy as np
import pandas as pd
import datetime
import…

Markus
- 578
- 6
- 26
0
votes
1 answer
ipywidgets floatrangeslider daterangeslider
I tried to use FloatRangeSlider from ipywidgets in a jupyter-notebook such that the date is displayed:
import ipywidgets as widgets
from datetime import datetime
class myd:
def __init__(self, value_datetime):
self.value =…

Markus
- 578
- 6
- 26
0
votes
1 answer
How to update holoviews Bars using an ipywidgets SelectionRangeSlider?
I want to select data from some pandas DataFrame in a Jupyter-notebook through a SelectionRangeSlider and plot the filtered data using holoviews bar chart.
Consider the following example:
import numpy as np
import pandas as pd
import datetime
import…

Markus
- 578
- 6
- 26
0
votes
1 answer
Control lifecycle of IPython widget
I have a class that uses IPython widgets to render rich output. This output changes over time. I manage this by adding a callback to the IOLoop that alters the output periodically.
class Foo(object):
def _ipython_display_(self, **kwargs):
…

MRocklin
- 55,641
- 23
- 163
- 235
0
votes
1 answer
Is there a way to define a TextBox for Passwords with ipywidgets?
I am using ipywidgets to create text boxes as described in the documentation. That works fine, but I want to create text boxes which show just dots/stars/whatever when an user gives some input, like for a password input box.
Is that possible to do…

Alex
- 41,580
- 88
- 260
- 469
0
votes
1 answer
Cannot import widget from IPython.html.widgets in Spyder
I am using spyder to run my code.
from Ipython.html.widgets import interact, ButtonWidget
I tried to replace Ipython.html.widgets to ipywidgets and execute it. It threw me back:
from ipywidgets import interact, ButtonWidget
ImportError: cannot…

Maddy
- 146
- 1
- 12
0
votes
2 answers
How to create a ipywidgets from multiple ones?
Let's say I want a widget composed of an IntText widget and a DropDown widget which value is a concatened string of those widgets values. How can I do?
Here is an attempt:
import re
import ipywidgets as ipw
from IPython.display import…

PhML
- 1,190
- 1
- 11
- 20
0
votes
1 answer
Unselect every thing in ipython widget
In a SelectMultiple widget in iPython, is it possible to select nothing (or unselect everything)?
There doesn't seem to be any option like that in the documentation.

user1742188
- 4,563
- 8
- 35
- 60
0
votes
1 answer
How to update plot characteristics (hovertool details and x_range) in a bokeh plot multiple times?
I have a bokeh plot that I would like to update the ranges (x_range and y_range) as well as the hovertool details (field names, etc.) when I update the source data in the plot. The things I've tried haven't worked yet. Any help would be appreciated.…

user1340654
- 395
- 2
- 5
- 16
0
votes
1 answer
How to efficiently replace element in plot with ipywidgets?
How can I efficiently display similar plots with ipywidgets using Jupyter Notebook?
I wish to plot interactively a heavy plot (heavy in the sense that it has lots of data points and takes some time to plot it) and modify a single element of it using…

gota
- 2,338
- 4
- 25
- 45
0
votes
2 answers
How to install ipywidgets offline (from file)
So I am trying to install ipywidgets-0.0.1 into my Anaconda environment. I am running Anaconda3. Unfortunately, the machine I need to install it on does not have internet access.
The basic way to install the package is to run conda install…

Katya Willard
- 2,152
- 4
- 22
- 43