Python Playground
An interactive Python sandbox powered by Pyodide — run Python entirely in your browser via WebAssembly.
Features
- Full Python 3.11 runtime
- Edit and run code instantly
- No setup required
Limitations
- Cannot call actual LLMs (no Ollama/OpenAI APIs)
- Cannot install system-dependent packages
Example 1: Basic State
Explore how LangGraph's TypedDict state works.
Basic State Management
Key Concepts:
TypedDictdefines state structureAnnotated[list, add]merges list updates- State flows between nodes
Example 2: Graph Nodes
Build a basic graph structure with nodes.
Graph Structure
Key Concepts:
- Nodes are functions that take and return state
- State updates are merged automatically
- LangGraph manages flow between nodes
Example 3: Conditional Routing
Learn conditional routing based on state.
Conditional Routing
Key Concepts:
- Routing functions return next node name
- Enables dynamic flow control
- Use
add_conditional_edges()in LangGraph
Next Steps
Ready for real LLMs? Start with:
Having Issues?
Pyodide takes a few seconds to initialize. Refresh if needed.