Skip to main content
The standard code-interpreter template starts from Python 3.12 and includes common data analysis, visualization, scraping, and ML packages.

Python Packages

numpy
pandas
matplotlib
seaborn
plotly
scipy
scikit-learn
pillow
requests
beautifulsoup4
nltk
opencv-python-headless
xgboost
Notebook/runtime packages include ipykernel, jupyter_client, and bash_kernel.

Install More Packages

sandbox.install_packages(["humanize==4.9.0"])
result = sandbox.run_code("""
import humanize
print(humanize.intword(1234567))
""")
print("".join(result.logs.stdout))
Package installs affect the running sandbox. Build a custom template when a dependency should be preinstalled for many sandboxes.