Runtime support for Haematite notebooks - variable extraction and export API
Project description
haematite
Runtime support for Haematite notebooks.
Installation
pip install haematite
Usage
Export values from your notebook cells:
import haematite as hm
# Export a specific value
data = [1, 2, 3, 4, 5]
hm.export("my_data", data)
# Take a snapshot of all local variables
hm.snapshot("checkpoint")
Exported values are automatically captured and can be used in subsequent cells or visualizations.
API
hm.export(name: str, value: Any) -> None
Export a named value. The value is captured at the point of the call, preserving its state at that moment.
hm.snapshot(label: str, filter: Optional[List[str]] = None) -> None
Capture all local variables at the current point. Optionally filter to specific variable names.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file haematite-0.1.0.tar.gz.
File metadata
- Download URL: haematite-0.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03711fac39d60d400f25e4d31eb8b12bc2133957e2a84bcef0cc65bb8126aa24
|
|
| MD5 |
6c8fb0c01f092016f4ec30f3a1a02775
|
|
| BLAKE2b-256 |
cec9d855891314ab68b344497efa02ac79479037220cfa9a3326e392a6462845
|
File details
Details for the file haematite-0.1.0-py3-none-any.whl.
File metadata
- Download URL: haematite-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fad836d3f279dc1215f8883f6d85a8428978650ab6bd7870818007b8d14c13d3
|
|
| MD5 |
0bd9cb04243940c6ebe10e2cf796c5d6
|
|
| BLAKE2b-256 |
32eea49764049fa27ac68784130d7d958ca0a841dfef7d4466862c6f2b2d4ef7
|