Unable to render matplotlib widgets correctly with Jupyter Notebook Renderers #16342
Unanswered
SNOWBEAR-SCI
asked this question in
Questions and Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't know if this is the issue with the extension itself or if I am using it incorrectly.
The example code of slider from matplotlib can illustrate this issue:
https://matplotlib.org/stable/gallery/widgets/slider_demo.html#sphx-glr-gallery-widgets-slider-demo-py
If I run the ipynb with Jupyter notebook or the python file with vscode, the sliders and other matplotlib widgets are interactive. However, if I run the ipynb with vscode, I only get a non-interactive png output. In other words, the renderer extension does not output the interactive widgets as expected.
For kernel, I am using python 3.12 environment from anaconda in both Jupyter notebook and vscode. Most matplotlib and numpy functions except the widgets work, so I suppose the issue is with the renderer instead of kernel, function import, or other extensions.
Beta Was this translation helpful? Give feedback.
All reactions