Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Notebook

class Notebook

Notebooks provide a flexible, programmatic environment for analysis within a workflow, in Python, R, Stata, or SAS. Various methods allow you to run and stop notebooks, and to reference their source and output tables.

Notebooks are created and edited on Redivis. Unlike the Python and R clients, this library doesn't run within Redivis notebooks, so it doesn't include notebook-specific functionality such as current_notebook() or create_output_table().

Constructors

Method
Description

redivis.notebook(name[, options])

Return a Notebook within the default workflow, or given its fully qualified reference (owner.workflow.notebook).

Return a Notebook within a specific workflow.

List the Notebooks of a workflow.

Examples

const notebook = redivis.workflow('jane.my_workflow').notebook('my_notebook');

// Run the notebook, waiting for it to finish
await notebook.run();

const outputTable = await notebook.outputTable();
const rows = await outputTable.toRowsArray();

Attributes

Name
Description

name

The notebook's name.

workflow

The Workflow that the notebook belongs to.

properties

An object containing the API resource representation of the notebook. This will only be populated after certain methods are called, particularly the get method.

qualifiedReference

The fully qualified reference to the notebook.

scopedReference

The canonical reference for the notebook, without its workflow.

Methods

Method
Description

Check whether the notebook exists.

Fetch the notebook's metadata, populating notebook.properties.

Return the notebook's output Table.

Return every Table that the notebook references.

Notebook.run([options])

Run the notebook.

Return the notebook's source Table.

Stop the notebook's current run.

Update the notebook's name or source table.

Was this helpful?