Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work on MacOS #3965

Open
ruidazeng opened this issue Nov 15, 2024 · 1 comment
Open

Does not work on MacOS #3965

ruidazeng opened this issue Nov 15, 2024 · 1 comment

Comments

@ruidazeng
Copy link

ruidazeng commented Nov 15, 2024

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)>
@baggiponte
Copy link

Same for me. I tried this:

cd "$(mktemp -t scratch --directory)"
uv init --name=test --python=3.12
uv add --dev jupyterlab ipywidgets

then wrote

from ipywidgets import IntSlider

slider = IntSlider()

print(slider.value ** 2)

Got:

image

My user agent is: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' I am on Arc but get the same problems on Chrome and Safari.

@ruidazeng ruidazeng changed the title Does not work on Jupyter notebook (or Jupyter Lab) Does not work on MacOS Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants