Matplotlib
packages = [ "matplotlib", "numpy" ] plugins = [ "https://pyscript.net/latest/plugins/python/py_tutor.py" ]
PyScript Hello World
Hello world!
Shown is a polynomial curve.
import numpy as np import matplotlib.pyplot as plt fig = plt.figure() x = np.linspace(-3, 3, 1000) y = x**2 plt.plot(x, y) display(fig, target="mpl")