-
Notifications
You must be signed in to change notification settings - Fork 949
Does not work on MacOS #3965
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
Comments
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: 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. |
In order to see the widget it must be the last item in the cell or explicitly displayed with from ipywidgets import IntSlider
slider = IntSlider()
slider print(slider.value ** 2) |
I was able to fix this by installing In my case, the kernel I am running is in a separate environment from jupyterlab's, and it had ipywidgets installed, but the plugin for jupyterlab is needed in its environment. Also, I'd used homebrew to install python and jupyterlab, and it has no formula for jupyterlab_widgets. So I had to force the issue with Neither of these things may be affecting you, but it may be a good idea to confirm that your jupyter has the appropriate plugin. |
Jupyter notebook version: latest, just brew installed it.
Installation in Jupyter notebook
Usage:
It shows this as an output instead of a functioning slider:
The text was updated successfully, but these errors were encountered: