Comment on page
Packages
Using and installing Python packages.
The following libraries are included by default:
Default packages can be imported like any other native Python package.
import pandas as pd
import numpy as np
import scipy
import micropip
# `await` is necessary to wait until the package is available
await micropip.install("faker")
# import installed package
from faker import Faker
# use the package!
fake = Faker()
fake.name()
This only works for packages that are either pure Python or for packages with C extensions that are built in Pyodide. If a pure Python package is not found in the Pyodide repository, it will be loaded from PyPI. Learn more about how packages work in Pyodide.
Note that the requests library is not available for use. However, you can use the
pyodide
or js
libraries directly. See Query API for in-depth instructions.Note: requests are made client-side from your web browser and are subject to CORS limitations. You may need to proxy requests through a CORS proxy such as cors.sh
We are working on this feature and will have Python-based visualizations in Quadratic soon!
Last modified 22h ago