跳转至

SAGE Kernel Examples

This directory contains practical examples demonstrating how to use SAGE Kernel components and APIs.

Example Categories

Basic Usage

Advanced Streaming

Integration Examples

Real-World Use Cases

Running Examples

Each example can be run independently:

cd packages/sage-kernel
python examples/basic/simple-streaming.py

Or using the sage CLI:

sage run examples/basic/simple-streaming.py

Example Requirements

Some examples may require additional dependencies: - pandas for data manipulation examples - numpy for numerical computation examples - matplotlib for visualization examples

Install with:

pip install intsage-kernel[examples]

Contributing Examples

When adding new examples: 1. Place them in the appropriate category directory 2. Include clear documentation and comments 3. Add any required dependencies to the example header 4. Update this README with the new example