Skip to main content

Interactive Playground

Experiment with Python code, explore datasets, view notebooks, and try ML model demos right in your browser.

Python Code Playground

Run Python code directly in the browser using Pyodide (WebAssembly). Supports numpy, pandas, and more.

Python Playground

Notebook Viewer

View Jupyter notebooks with code cells, outputs, and markdown rendered inline.

sample_analysis.ipynb

Python 3 3.11.0
MD
# Hello from Jupyter!

This is a sample notebook demonstrating the **NotebookViewer** component.
[1]
import numpy as np
import pandas as pd

# Create sample data
data = np.random.randn(100, 3)
df = pd.DataFrame(data, columns=["A", "B", "C"])
df.describe()
              A          B          C
count  100.000000  100.000000  100.000000
mean    -0.032892    0.089012    0.042103
std      1.021390    0.987654    1.013210
[2]
# Plot results
print("Visualization would go here")
print(f"DataFrame shape: {df.shape}")
Visualization would go here
DataFrame shape: (100, 3)
3 cells (2 code, 1 markdown)

Dataset Viewer

Explore datasets with search, sort, and pagination. Columns are automatically typed.

AI/ML Models Registry10 rows × 6 cols
#id(number)name(string)type(string)params(string)year(number)open_source(boolean)
11BERTNLP110M2018true
22GPT-2NLP1.5B2019true
33T5NLP11B2019true
44GPT-3NLP175B2020false
55DALL-EVision12B2021false
66LLaMANLP65B2023true
77MistralNLP7B2023true
88ClaudeNLPUnknown2024false
99GemmaNLP7B2024true
1010Phi-3NLP3.8B2024true

Model Demo

Embed Hugging Face Spaces, Gradio apps, or Streamlit demos directly in your posts.

Stable Diffusion Demo

Generate images from text prompts using Stable Diffusion.

Scroll down to load the demo...

Powered by Hugging Face Spaces / GradioOpen in new tab