coatless-quarto/pyodide

Add ways to install non-Pyodide specific packages

coatless opened this issue · 1 comments

We're currently using pyodide.loadPackagesFromImports() to identify packages inside of each code cell and load them before running the code cell. This works well for packages available here:

https://pyodide.org/en/stable/usage/packages-in-pyodide.html

However, this list omits some data science classics like:

  • palmerpenguins
  • sqlite3
  • seaborn
  • plotnine

We probably should add micropip as part of the initial package load so that we can have:

import micropip
await micropip.install(
    'palmerpenguins'
)

More details at:

https://pyodide.org/en/stable/usage/loading-packages.html

Related to feedback in:

https://twitter.com/tomicapretto/status/1759766727951274332

Taken care of in #10, a07cb6a, and f83c77b