Is there a way to instruct the Jupiter interactive window to use a Retina display with the Python extension of Visual Studio Code? For example, this minimal code
#%%
import numpy as np
from matplotlib import pyplot as plt
x = np.linspace(-10, 10, 1000)
plt.plot(x, np.sin(x))
produces an output that shows clearly the image pixels (note the resolution difference between the text "matplotlib.lines.Line2D..." and the plot markers):

Using the standard line
%config InlineBackend.figure_format = 'retina'
unfortunately does not seem to solve the problem: it makes images twice as large, but still not retina-display ready.
Try using the setting %config InlineBackend.figure_format='svg', it seems to have the best resolution without the scaling issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With