Questions tagged [ipywidgets]

IPython widgets for the Jupyter Notebook

Read the docs

ipywidgets on github

973 questions
75
votes
11 answers

How to get ipywidgets working in Jupyter Lab?

In Jupyter Notebook, ipywidgets work fine, however they seem to not work in Jupyter Lab (which is supposedly better than Notebook). I followed these directions. Step 1: Installed Node.js (https://nodejs.org/en/) Step 2: Installed requirements on…
user5601
  • 858
  • 1
  • 7
  • 9
72
votes
11 answers

IPython Notebook ipywidgets does not show

I created a table with an interactive slider that allows me to toggle between different periods on my table. It was working for the past few days, until today, when I re-ran the notebook, the slide bar doesn't show anymore. No error messages appear.…
Cliff Chew
  • 906
  • 1
  • 7
  • 15
42
votes
5 answers

ImportError: IProgress not found. Please update jupyter and ipywidgets although it is installed

I am using jupyter notebook and installed. ipywidgets==7.4.2 widgetsnbextension pandas-profiling=='.0.0 and also I ran: !jupyter nbextension enable --py widgetsnbextension but when running: from pandas_profiling import ProfileReport profile =…
Cranjis
  • 1,590
  • 8
  • 31
  • 64
30
votes
5 answers

Ipywidgets with Google Colaboratory

I am trying to use ipywidgets with Google Colaboratory, and (as with plotly) the simplest example from the docs does not work. The code below shows a slider in a local notebook but only returns 10 and in a Google notebook. !pip…
elz
  • 5,338
  • 3
  • 28
  • 30
29
votes
2 answers

Really confused with Jupyter Notebook, Lab, extensions, and ipywidgets

I want to create an interactive JupyterLab Notebook application, and I need to create a series of custom Widgets. So I started looking into this matter, and the more I look the more confused I become. To make things simple I will ask a bunch of…
AstrOne
  • 3,569
  • 7
  • 32
  • 54
25
votes
3 answers

Using Ipython ipywidget to create a variable?

This seems really simple but I have not been able to find a single example or to solve this myself. How do I use an ipywidget widget to create or return a python variable/object, such as a list or string, that can be used in a following cell?
Little Bobby Tables
  • 4,466
  • 4
  • 29
  • 46
23
votes
3 answers

How to display matplotlib plots in a Jupyter tab widget?

I am having trouble displaying plots inside of Jupyter tab widgets. Consider the following snippet: import matplotlib.pyplot as plt import pandas as pd import ipywidgets as widgets import numpy as np out1 = widgets.Output() out2 =…
Arthur Azevedo De Amorim
  • 23,012
  • 3
  • 33
  • 39
22
votes
5 answers

Dynamically changing dropdowns in IPython notebook widgets and Spyre

I have a dropdown in an IPython notebook (as part of the HTML widgets) and in a Spyre app (as a dropdown element), say to pick a continent and I'd like to add a second dropdown to select the country within the continent. Now obviously the options…
Ondrej
  • 502
  • 1
  • 3
  • 12
20
votes
2 answers

How to display the full text in the button ipywidget?

I am creating an ipywidget button with some text. But the full text is not shown in the button: The code I have used is as follows: import ipywidgets as widgets from IPython.display import display button = widgets.Button( description='Test…
Alex
  • 41,580
  • 88
  • 260
  • 469
20
votes
1 answer

Interactive matplotlib using ipywidgets

I want to implement an interactive plot using Matplotlib and ipywidgets in IPython (python3). So, how I can do this efficiently (change smoothly without delay)? And another question is why this code works?! from ipywidgets import * import numpy as…
Yas
  • 4,957
  • 2
  • 41
  • 24
17
votes
6 answers

Jupyter notebook: Widget Javascript not detected

Question: I installed python3 and jupyter notebook using pip3 in MacOs 10.9. When I try to run the widget it gives error that there is no javascript widget. I have python3 and R kernels installed in Jupyter-notebook. Code: from ipywidgets import…
BhishanPoudel
  • 15,974
  • 21
  • 108
  • 169
17
votes
2 answers

Jupyter: embed live interactive widgets

According to the Jupyter blog here, it is now possible to embed interactive widgets in a static webpage: Live interactive widgets can now be embedded into static web pages or blogs by inserting an html snippet containing the serialized widget…
Ely
  • 498
  • 5
  • 14
16
votes
2 answers

iPyWidget with date slider?

I am wondering if there's an easy way to build an iPyWidget with a datetime slider. Right now it is easy to slide over integer or floating point ranges (e.g. numbers 1-10, decimals 0.01, 0.02, ...). I imagine you could convert dates to floats or…
atkat12
  • 3,840
  • 7
  • 22
  • 22
16
votes
1 answer

Place ipywidgets into HTML into Jupyter notebook

With the following minimal example, I can create buttons which interact with the Jupyter notebook and an HTML table, which is displayed in the notebook. import ipywidgets from IPython.display import display from IPython.core.display import…
Lukas
  • 2,330
  • 2
  • 22
  • 31
14
votes
1 answer

VS Code Interactive is not rendering tqdm.notebook properly

I used to use from tqdm.auto import tqdm and when I was in VS Code Interactive, I would get nice outputs of tqdm like so: I setup a new environment with venv, and now I've lost that - only the text version works: When I run this sample cell: from…
1
2 3
64 65