positron icon indicating copy to clipboard operation
positron copied to clipboard

Interactive matplotlib plots

Open seeM opened this issue 1 year ago • 0 comments

We should support matplotlib's interactive mode i.e. ipympl.

For example, this should produce an interactive plot:

%matplotlib ipympl
import matplotlib.pyplot as plt
import numpy as np

fig, ax = plt.subplots()


x = np.linspace(0, 2*np.pi, 100)
y = np.sin(3*x)
ax.plot(x, y)

Currently it produces a static low-res plot:

image

Sub-issue of https://github.com/posit-dev/positron/issues/1924.

seeM avatar Jul 29 '24 18:07 seeM