Polars in Pyodide

Hi,

I am very excited to hear that it is now possible to use Polars with Pyodide and Quarto-Live. This will make me finally switch from Pandas to Polars.

However, I have a problem. When I render a Quarto-Live qmd, I can run all chunks but when I run the chunk that imports Polars, in a browser I get:

No module named 'polars'

I uninstalled all Python versions and installed Python 3.14 (although it looks like Pyodide runs Python 3.13.2), I also uninstalled Positron and reinstalled it, then I upgrade Quarto to 1.8.26.

When the local host is listening the lower bar in Positron says: "Initializing Virtual Environments".

Thank you so much in advance for your help.

Carsten

Below is my code.


title: Python Example
format: live-html

import pandas as pd
print("pandas loaded")
import sys
print(sys.version)
import polars as pl
print("pandas loaded")

After long further research, this is what I found out (hope it helps others who come along this post): Polars was included in Pyodide 27, but then taken out in version 28 and not reintegrated in version 29. I hope it gets back into version 30, until then I will wait patiently. Any update is appreciated.