You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and open the image (e.g., in another tab) to see it is a PNG.
You can also try the older, and evidently now deprecated, but much easier to input
%config InlineBackend.figure_formats = 'svg'
and it also doesn't work.
I've tested this in various notebook environments, e.g., Jupyter classic and CoCalc. Of course the problem is more on the side of the kernel, not the frontend.
Expected Behavior
Plots to be displayed using SVG instead of PNG.
Actual Behavior
All attempts are ignored and PNG is output.
Additional Information
This is a page discussing this sort of behavior in Python:
That page is pretty ridiculous though as each answer becomes deprecated or broken from one year to the next. I wish people cared more about stability for users, and I can see how this has been very frustrating to support or get right in sage over the years.
Incidentally the motivation is that SVG looks massively better if you have a modern high resolution display.
Steps To Reproduce
Here's the code in any Jupyter notebook to try this:
then
and open the image (e.g., in another tab) to see it is a PNG.
You can also try the older, and evidently now deprecated, but much easier to input
and it also doesn't work.
I've tested this in various notebook environments, e.g., Jupyter classic and CoCalc. Of course the problem is more on the side of the kernel, not the frontend.
Expected Behavior
Plots to be displayed using SVG instead of PNG.
Actual Behavior
All attempts are ignored and PNG is output.
Additional Information
This is a page discussing this sort of behavior in Python:
https://stackoverflow.com/questions/36622237/jupyter-notebook-inline-plots-as-svg
That page is pretty ridiculous though as each answer becomes deprecated or broken from one year to the next. I wish people cared more about stability for users, and I can see how this has been very frustrating to support or get right in sage over the years.
Incidentally the motivation is that SVG looks massively better if you have a modern high resolution display.
See also https://cocalc.com/hsy/ubuntu-22.04-testing/jupyter-plot-png-svg for how things work in Python + Matplotlib, which is how people will expect things to work in Sage.
Environment
Checklist
The text was updated successfully, but these errors were encountered: