Notebook
Class: Notebook
Section titled “Class: Notebook”Notebooks run Jupyter Notebook files, and can output content to the storage buckets defined in
workflow_settings.yaml files.
You can create notebooks in the following ways. Available config options are defined in NotebookConfig, and are shared across all the following ways of creating notebooks.
Using action configs files:
actions:- notebook: filename: name.ipynb{ "cells": [] }Using the Javascript API:
notebook("name", { filename: "name.ipynb" }){ "cells": [] }Naming the notebook:
By default a notebook action is named after its notebook file, without the extension:
filename: name.ipynb creates a notebook called name. Set name in the config to override
that. Other actions then refer to it by the new name, for example in dependencies. Because the
name no longer comes from the file, one notebook file can back several notebook actions:
actions:- notebook: filename: report.ipynb name: daily_reportIn the Javascript API the name is the first argument.
Hierarchy
Section titled “Hierarchy”-
ActionBuilder‹Notebook›
↳ Notebook
Methods
Section titled “Methods”Methods
Section titled “Methods”▸ ipynb(contents: object): Notebook
Sets or overrides the contents of the notebook to run. Not recommended in general; using
separate .ipynb files for notebooks is preferred.
Parameters:
| Name | Type |
|---|---|
contents | object |
Returns: Notebook