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.
Constructors
redivis.notebook(name[, options])
Return a Notebook within the default workflow, or given its fully qualified reference (owner.workflow.notebook).
Workflow.notebook(name)
Return a Notebook within a specific workflow.
Workflow.listNotebooks([maxResults])
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
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
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.
Notebook.update(options)
Update the notebook's name or source table.
Was this helpful?

