:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
"""Canvas facade for notebook widgets.
Notebooks build and publish widget canvases through these functions only.
The implementation lives in ``products/canvas/backend/notebook_integration.py``.
"""
from products.canvas.backend.facade.contracts import (
CanvasGenerationState as CanvasGenerationState,
NotebookCanvasBuildCapacityError as NotebookCanvasBuildCapacityError,
NotebookCanvasError as NotebookCanvasError,
NotebookCanvasNotFoundError as NotebookCanvasNotFoundError,
NotebookCanvasSourceInvalidError as NotebookCanvasSourceInvalidError,
NotebookCanvasVersion as NotebookCanvasVersion,
NotebookCanvasVersionConflictError as NotebookCanvasVersionConflictError,
PreparedNotebookCanvasSource as PreparedNotebookCanvasSource,
)
from products.canvas.backend.notebook_integration import (
create_notebook_canvas as create_notebook_canvas,
discard_notebook_canvas_draft as discard_notebook_canvas_draft,
get_canvas_generation_state as get_canvas_generation_state,
get_notebook_canvas_source as get_notebook_canvas_source,
list_notebook_canvas_versions as list_notebook_canvas_versions,
notebook_canvas_source_transaction as notebook_canvas_source_transaction,
prepare_notebook_canvas_source as prepare_notebook_canvas_source,
promote_notebook_canvas_draft as promote_notebook_canvas_draft,
publish_prepared_notebook_canvas_draft as publish_prepared_notebook_canvas_draft,
publish_prepared_notebook_canvas_source as publish_prepared_notebook_canvas_source,
validate_notebook_canvas_source as validate_notebook_canvas_source,
)