Skip to content

Notebook.add_traces

Add dataset traces to this notebook.

Accepts Dataset objects or dataset ID strings. All traces from those datasets become part of this notebook's analysis.

Signature

add_traces(*datasets: Any) -> list[dict[str, Any]]

Parameters

Name Type Required Default
*datasets Any no -

HTTP parameters

Name In Type Required Default
notebook_id path string yes -

Fields

Schema: NotebookTraceCreateSchema

Field
*datasets

Return shape

HTTP 201 — Created

array<NotebookTraceSchema>

Permission

Required permission: notebook:update

HTTP

POST /api/notebooks/{id}/traces/ (addNotebookTrace)

Usage

nb.add_traces(ds1, ds2)
nb.add_traces("9a20c280-0017-4c55-b449-97ab8d860a40")