Divooka Reference

Notebook Application

37 nodes

On this page 37

Make Notebook Application

Function

This node carries no documentation.

Signature
NotebookApplication() -> Notebook Application
NotebookApplication NotebookApplication()

Returns

Notebook ApplicationNotebook Application
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Add Cell

Function

Place one cell made with the Notebook Cells nodes on the current page.

Signature
AddCell
    Notebook Application: Notebook Application
    cell: Notebook Cell
void AddCell(
    NotebookApplication Notebook Application,
    NotebookCell cell)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
cellNotebook Cell—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Add Page

Function

Place cells made with the Notebook Cells nodes as a page of their own.

Signature
AddPage
    Notebook Application: Notebook Application
    name: Text
    cells: Notebook Cell Array
void AddPage(
    NotebookApplication Notebook Application,
    string name,
    NotebookCell[] cells)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
nameText—
cellsNotebook Cell Array—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Answer On Load

Function

Have every input on the site answer its starting value when a page opens, so a page shows its outputs before anyone touches it. Off unless this is called.

Signature
AnswerOnLoad(Notebook Application: Notebook Application)
void AnswerOnLoad(NotebookApplication Notebook Application)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—

Remarks

Buttons and uploads still wait: a button has no value until it is pressed, and an upload has no file.

Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Begin Group

Function

Open an input group: the inputs added until End Group are its fields, and End Group's function computes from all of them at once. A field's own function is not called.

Signature
BeginGroup
    Notebook Application: Notebook Application
    label: Text
void BeginGroup(
    NotebookApplication Notebook Application,
    string label)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
labelText—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Button

Function

This node carries no documentation.

Signature
Button
    Notebook Application: Notebook Application
    label: Text
    onClick: Func<Any>
void Button(
    NotebookApplication Notebook Application,
    string label,
    Func<object> onClick)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
labelText—
onClickFunc<Any>—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Checkbox

Function

This node carries no documentation.

Signature
Checkbox
    Notebook Application: Notebook Application
    label: Text
    initial: Truth
    onChange: Func<Truth, Any>
void Checkbox(
    NotebookApplication Notebook Application,
    string label,
    bool initial,
    Func<bool, object> onChange)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
labelText—
initialTruth—
onChangeFunc<Truth, Any>—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Choice

Function

This node carries no documentation.

Signature
Choice
    Notebook Application: Notebook Application
    label: Text
    options: Text Array
    initial: Text
    onChange: Func<Text, Any>
void Choice(
    NotebookApplication Notebook Application,
    string label,
    string[] options,
    string initial,
    Func<string, object> onChange)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
labelText—
optionsText Array—
initialText—
onChangeFunc<Text, Any>—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Date

Function

This node carries no documentation.

Signature
Date
    Notebook Application: Notebook Application
    label: Text
    initial: Text
    onChange: Func<Text, Any>
void Date(
    NotebookApplication Notebook Application,
    string label,
    string initial,
    Func<string, object> onChange)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
labelText—
initialText—A date as yyyy-MM-dd; empty for none.
onChangeFunc<Text, Any>—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

End Group

Function

Close the input group Begin Group opened, with the function that answers it.

Signature
EndGroup
    Notebook Application: Notebook Application
    onChange: Func<Notebook Inputs, Any>
void EndGroup(
    NotebookApplication Notebook Application,
    Func<NotebookInputs, object> onChange)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
onChangeFunc<Notebook Inputs, Any>—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Get Session Id

Function

This visitor's session, as an id: what to name a file this visitor's functions write so that no other visitor's overwrites it.

Signature
GetSessionId(Notebook Application: Notebook Application) -> Text
string GetSessionId(NotebookApplication Notebook Application)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—

Returns

resultText
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Heading

Function

This node carries no documentation.

Signature
Heading(Notebook Application: Notebook Application, text: Text)
void Heading(
    NotebookApplication Notebook Application,
    string text)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
textText—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Hide Run All

Function

Hide Run All on the current page.

Signature
HideRunAll(Notebook Application: Notebook Application)
void HideRunAll(NotebookApplication Notebook Application)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Html

Function

This node carries no documentation.

Signature
Html(Notebook Application: Notebook Application, HTML: Text)
void Html(NotebookApplication Notebook Application, string html)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
HTMLText—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Image

Function

This node carries no documentation.

Signature
Image
    Notebook Application: Notebook Application
    image: Any
    caption: Text
void Image(
    NotebookApplication Notebook Application,
    object image,
    string caption = "")

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
imageAny—A Divooka image, or a picture file's path.
captionText—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Input

Function

Another cell's current input, by its label on this page or its id: a number, text, a truth, a file, or null.

Signature
Input -> Any
    Notebook Application: Notebook Application
    cell: Text
object Input(
    NotebookApplication Notebook Application,
    string cell)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
cellText—

Returns

resultAny
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Last Disabled

Function

Make the cell added last start disabled; a function enables it with Set Enabled.

Signature
LastDisabled(Notebook Application: Notebook Application)
void LastDisabled(NotebookApplication Notebook Application)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Last Prefer View

Function

Have the cell added last first show its table, series or chart output a particular way.

Signature
LastPreferView
    Notebook Application: Notebook Application
    view: Text
void LastPreferView(
    NotebookApplication Notebook Application,
    string view)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
viewText—table, line, scatter, bar, histogram, interactive or image.
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Last Read Only

Function

Make the cell added last read-only.

Signature
LastReadOnly(Notebook Application: Notebook Application)
void LastReadOnly(NotebookApplication Notebook Application)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Markdown

Function

This node carries no documentation.

Signature
Markdown(Notebook Application: Notebook Application, text: Text)
void Markdown(
    NotebookApplication Notebook Application,
    string text)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
textText—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Number

Function

This node carries no documentation.

Signature
Number
    Notebook Application: Notebook Application
    label: Text
    initial: Number
    onChange: Func<Number, Any>
void Number(
    NotebookApplication Notebook Application,
    string label,
    double initial,
    Func<double, object> onChange)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
labelText—
initialNumber—
onChangeFunc<Number, Any>—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Page

Function

Open a page: everything added after it goes on this page, until the next.

Signature
Page(Notebook Application: Notebook Application, name: Text)
void Page(NotebookApplication Notebook Application, string name)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
nameText—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Page Read Only

Function

Make the current page read-only: its inputs show their starting values and cannot be changed.

Signature
PageReadOnly(Notebook Application: Notebook Application)
void PageReadOnly(NotebookApplication Notebook Application)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Set Enabled

Function

Enable or disable another cell's input, by its label on this page or its id. The page changes when the function that called this answers.

Signature
SetEnabled
    Notebook Application: Notebook Application
    cell: Text
    enabled: Truth
void SetEnabled(
    NotebookApplication Notebook Application,
    string cell,
    bool enabled)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
cellText—
enabledTruth—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Set Shared

Function

Set a value every visitor shares.

Signature
SetShared
    Notebook Application: Notebook Application
    key: Text
    value: Any
void SetShared(
    NotebookApplication Notebook Application,
    string key,
    object value)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
keyText—
valueAny—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Shared

Function

A value every visitor shares, set with Set Shared - typically in Site Started; null when nothing is set.

Signature
Shared -> Any
    Notebook Application: Notebook Application
    key: Text
object Shared(
    NotebookApplication Notebook Application,
    string key)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
keyText—

Returns

resultAny
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Show

Function

A cell with no input, showing what its function answers when the page loads.

Signature
Show
    Notebook Application: Notebook Application
    label: Text
    compute: Func<Any>
void Show(
    NotebookApplication Notebook Application,
    string label,
    Func<object> compute)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
labelText—
computeFunc<Any>—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Site

Function

Name the site, as the top bar and the browser tab show it.

Signature
Site
    Notebook Application: Notebook Application
    name: Text
    iconUrl: Text
void Site(
    NotebookApplication Notebook Application,
    string name,
    string iconUrl = "")

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
nameText—
iconUrlText—A small picture beside the name, by URL; empty for none.
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Slider

Function

This node carries no documentation.

Signature
Slider
    Notebook Application: Notebook Application
    label: Text
    min: Number
    max: Number
    initial: Number
    onChange: Func<Number, Any>
void Slider(
    NotebookApplication Notebook Application,
    string label,
    double min,
    double max,
    double initial,
    Func<double, object> onChange)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
labelText—
minNumber—
maxNumber—
initialNumber—
onChangeFunc<Number, Any>—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Text Area

Function

This node carries no documentation.

Signature
TextArea
    Notebook Application: Notebook Application
    label: Text
    initial: Text
    onChange: Func<Text, Any>
void TextArea(
    NotebookApplication Notebook Application,
    string label,
    string initial,
    Func<string, object> onChange)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
labelText—
initialText—
onChangeFunc<Text, Any>—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Text Box

Function

This node carries no documentation.

Signature
TextBox
    Notebook Application: Notebook Application
    label: Text
    initial: Text
    onChange: Func<Text, Any>
void TextBox(
    NotebookApplication Notebook Application,
    string label,
    string initial,
    Func<string, object> onChange)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
labelText—
initialText—
onChangeFunc<Text, Any>—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Toggle

Function

This node carries no documentation.

Signature
Toggle
    Notebook Application: Notebook Application
    label: Text
    initial: Truth
    onChange: Func<Truth, Any>
void Toggle(
    NotebookApplication Notebook Application,
    string label,
    bool initial,
    Func<bool, object> onChange)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
labelText—
initialTruth—
onChangeFunc<Truth, Any>—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Upload

Function

This node carries no documentation.

Signature
Upload
    Notebook Application: Notebook Application
    label: Text
    kind: Notebook Upload Kind
    onChange: Func<Notebook File, Any>
void Upload(
    NotebookApplication Notebook Application,
    string label,
    NotebookUploadKind kind,
    Func<NotebookFile, object> onChange)

Parameters

nametypedefaultdescription
Notebook ApplicationNotebook Application—
labelText—
kindNotebook Upload Kind—
onChangeFunc<Notebook File, Any>—
Ships with
Divooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Build

Event

Lay out the notebook: name the site, open pages, add cells. Runs for every visitor's instance, so it should only lay out - not load or compute.

Signature
Build()
void Build()
Ships with
Divooka Compute
Graph kinds
Events StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Session Ended

Event

A visitor's page closed or went idle; its instance is about to be let go.

Signature
SessionEnded()
void SessionEnded()
Ships with
Divooka Compute
Graph kinds
Events StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Session Started

Event

A visitor's page has loaded and its instance is built.

Signature
SessionStarted()
void SessionStarted()
Ships with
Divooka Compute
Graph kinds
Events StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook

Site Started

Event

The site is about to serve its first visitor. Runs once, on the site's own instance: the place to load what every visitor shares, with Set Shared.

Signature
SiteStarted()
void SiteStarted()
Ships with
Divooka Compute
Graph kinds
Events StateMachineState
Declared by
Notebook Application
Package
Divooka Notebook