Install and import packages in JupyterLite
Since JupyterLite is running in the web assembly, the required packages can not be persisted locally, they need to by installed on-demand on each session.
With the preinstalled package piplite you can add the additional packages with .
await piplite.install()
Example: how to install and import package xplain
import piplite
await piplite.install("xplain")
import xplain