packages = [
"matplotlib",
"numpy"
]
PyScript Hello World
Hello world!
Shown is (or will be, if still `loading...`) a polynomial curve
import numpy as np
import matplotlib.pyplot as plt
from pyscript import display
fig = plt.figure()
x = np.linspace(-3, 3, 1000)
y = x**2
plt.plot(x, y)
display(fig, target="mpl")