-
Notifications
You must be signed in to change notification settings - Fork 296
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
Switching from %matplotlib inline to %matplotlib widget #16256
Comments
I'm unable to repro this issue at my end. Please could you enable logging as follows:
|
Same problem here:
Show Logs
|
I've managed to replicate this in Jupyter lab as well. Hence this isn't an issue with Jupyter extension in VS Code. As for this bug, well given that its in Jupyter Lab as well, I suspect its either a probelm in IPyKenrrel or matplotlib, and believe the fix for both Jupyter Lab and VS Code (JUpyter extension) is the same, i.e. fix the problem in the Python code, and thats beyond the scope of this extension as those packages aren't owned nor managed by us.. Closing this for now, again the issue with displaying of messages is tracked here #15996 |
@DonJayamanne, thank you for your time and effort. |
Type: Bug
Switching from Switching from %matplotlib inline to %matplotlib widget lead to "No shuch comm : xxx[...]xxx".
Cell 1 :
from matplotlib import pyplot as plt
import numpy as np
Cell 2 :
%matplotlib widget
fig, a = plt.subplots()
a.plot(np.random.rand(1000))
Cell 3:
%matplotlib inline
fig, a = plt.subplots()
a.plot(np.random.rand(1000))
Cell 4:
print(1)
Cell 4 result is 'No such comm: 65537bfa596c48b5a4752b18ff340a38' the code change each time for example :
No such comm: 65537bfa596c48b5a4752b18ff340a38
No such comm: 2eeca832ab8f4062b26dbc4b1282797b
No such comm: 6af96933f50f42e297b95c9505a20681
No such comm: 866a2665b5324fc2ae377ef177807d98
Any idea ?
Bye
Extension version: 2024.10.0
VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: