You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice that you do some of the lifting to get matplotlib charts to work via JS in each rendered page:
// Load the `matplotlib` package with necessary environment hookawaitmainPyodide.loadPackage("matplotlib");// Set the backend for matplotlib to be interactive.awaitmainPyodide.runPythonAsync(` import matplotlib matplotlib.use("module://matplotlib_pyodide.html5_canvas_backend") from matplotlib import pyplot as plt `);
I wonder if it would also be useful to allow config either globally or locally that would allow a user to specify in header or _quarto.yml things like:
For the second request regarding injecting the setup code before the cells are unlocked, we'd likely want to add an include-script-header designation that runs after all packages are installed, e.g.
Feature Description
I notice that you do some of the lifting to get
matplotlib
charts to work via JS in each rendered page:I wonder if it would also be useful to allow config either globally or locally that would allow a user to specify in header or
_quarto.yml
things like:which would create something like:
await mainPyodide.loadPackage("pandas");
or optionally something like:
to generate:
Alternatively, keep
pyodide-pip
as a simple list and then allow:The text was updated successfully, but these errors were encountered: