Quadratic Docs
Ask or search…
Comment on page


Using and installing Python packages.

Default 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
Micropip can be used to install additional Python packages (and their dependencies).
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()
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

Visualizations (coming soon)

We are working on this feature and will have Python-based visualizations in Quadratic soon!