ipywidgets icon indicating copy to clipboard operation
ipywidgets copied to clipboard

Does not work on MacOS

Open ruidazeng opened this issue 11 months ago • 3 comments

Jupyter notebook version: latest, just brew installed it.

Installation in Jupyter notebook

# Install matplotlib for data visualization
%matplotlib 
!pip install matplotlib

!pip install ipywidgets

Usage:

interact(plot_distribution, year=widgets.IntSlider(min=1, max=10, step=1, value=2))

It shows this as an output instead of a functioning slider:

interactive(children=(IntSlider(value=2, description='year', max=10, min=1), Output()), _dom_classes=('w…
<function __main__.plot_distribution(year)>

ruidazeng avatar Nov 15 '24 21:11 ruidazeng