Skip to content

@sqlrooms/notebook / createNotebookSlice

Function: createNotebookSlice()

createNotebookSlice(props?): StateCreator<NotebookSliceState>

Create the Notebook slice with tabs, cells, execution and dependency handling. Supports pluggable custom renderers via options.

Parameters

ParameterType
props?{ config?: Partial<{ artifacts: Record<string, { id: string; meta: { cellOrder: string[]; }; }>; currentCellId?: string; }>; }
props.config?Partial<{ artifacts: Record<string, { id: string; meta: { cellOrder: string[]; }; }>; currentCellId?: string; }>

Returns

StateCreator<NotebookSliceState>