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.0MD
# 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) |
|---|---|---|---|---|---|---|
| 1 | 1 | BERT | NLP | 110M | 2018 | true |
| 2 | 2 | GPT-2 | NLP | 1.5B | 2019 | true |
| 3 | 3 | T5 | NLP | 11B | 2019 | true |
| 4 | 4 | GPT-3 | NLP | 175B | 2020 | false |
| 5 | 5 | DALL-E | Vision | 12B | 2021 | false |
| 6 | 6 | LLaMA | NLP | 65B | 2023 | true |
| 7 | 7 | Mistral | NLP | 7B | 2023 | true |
| 8 | 8 | Claude | NLP | Unknown | 2024 | false |
| 9 | 9 | Gemma | NLP | 7B | 2024 | true |
| 10 | 10 | Phi-3 | NLP | 3.8B | 2024 | true |
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