-
Notifications
You must be signed in to change notification settings - Fork 298
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
Interactive Widgets fail on Apple Silicon, Remote Jupyter & when using non-Raw kernels #8378
Comments
Please could you try the latest VS Code insiders version.
|
@DonJayamanne I installed Apple Silicon version of VS Code Insiders. Same problem unfortunately.
|
Weird, works for me with the same python packages. |
Thanks, @DonJayamanne Tried both conda and venv environments (see commands below), still have this problem in both. Tried python installed by conda and asdf, same problem. Tried different Python versions (3.9.5, 3.10.0, 3.8.11), no difference. Conda
venv
The problem does not exist in Jupyter notebook when I run it normally (in the web browser). Everything works fine. The problem only exist in the Apple Silicon version of VS code. |
Here is a demo video (with sound). TLDR: I downloaded both Intel and Apple Silicon versions of VS Code Insiders. The widget works fine in Intel but not in Apple Silicon version of VS Code. vscode_widget_demo_intel_vs_arm.mp4 |
@evgenyneu Thanks for your patience, I'e identified the problem and should be able to get this fixed. |
Verified here #8407 (comment) |
Testing steps
from ipywidgets import interact
def f(x):
print(x)
interact(f, x=10);
In stable, this will not work with remote or non-raw. |
I can confirm the bug is fixed in VS Code insiders Apple Silicon build.
|
I notice that the bug seems to reappear if the Jupyter kernel is restarted (with VS Code Version : 1.63.0-insider (Universal)). |
@antonindurieux thanks for finding that, I've created an issue for that here #8431 |
@antonindurieux |
Testing steps
from ipywidgets import interact
def f(x):
print(x)
interact(f, x=10);
|
Closing as done for verification |
Environment data
Expected behaviour
As you move a slider the function is called multiple times.
Actual behaviour
The function is called once.
Steps to reproduce:
Expected behaviour
The widget calls the function
f
multiple times as you move the slider.Actual behaviour
The function
f
is only called once at the beginning:Notes
I could only see the bug on Apple Silicon Mac and not on my Intel Mac.
The widget works as expected on Apple Silicon Mac if opened in jupuyter-lab instead of VSCode.
Repository that reproduces the bug
https://github.com/evgenyneu/ipywidgets_vscode_bug
The text was updated successfully, but these errors were encountered: