Divooka Reference

Notebook Outputs

12 nodes

On this page 12

Chart

Function

A chart of one or more series, drawn by the page.

Signature
Chart -> Notebook Chart
    kind: Text
    title: Text
    series: Notebook Series Array
    xLabel: Text
    yLabel: Text
NotebookChart Chart(
    string kind,
    string title,
    NotebookSeries[] series,
    string xLabel = "",
    string yLabel = "")

Parameters

nametypedefaultdescription
kindText—line, scatter, bar, area or histogram.
titleText—
seriesNotebook Series Array—
xLabelText—
yLabelText—

Returns

resultNotebook Chart
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Notebook Outputs
Package
Divooka Notebook

Code

Function

Show source code.

Signature
Code(code: Text, language: Text) -> Notebook Code
NotebookCode Code(string code, string language = "")

Parameters

nametypedefaultdescription
codeText—
languageText—For highlighting: csharp, python, json…; empty for none.

Returns

resultNotebook Code
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Notebook Outputs
Package
Divooka Notebook

Download

Function

Offer a file for download.

Signature
Download(path: Text, fileName: Text) -> Notebook Download
NotebookDownload Download(string path, string fileName = "")

Parameters

nametypedefaultdescription
pathText—
fileNameText—

Returns

resultNotebook Download
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Notebook Outputs
Package
Divooka Notebook

Html

Function

Show an HTML fragment.

Signature
Html(HTML: Text) -> Notebook Html
NotebookHtml Html(string html)

Parameters

nametypedefaultdescription
HTMLText—

Returns

resultNotebook Html
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Notebook Outputs
Package
Divooka Notebook

Html Page

Function

Show a whole HTML page, in a frame of its own.

Signature
HtmlPage(HTML: Text) -> Notebook Html Page
NotebookHtmlPage HtmlPage(string html)

Parameters

nametypedefaultdescription
HTMLText—

Returns

resultNotebook Html Page
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Notebook Outputs
Package
Divooka Notebook

Line Chart

Function

A line chart of one run of numbers.

Signature
LineChart -> Notebook Chart
    title: Text
    x: Number Array
    y: Number Array
NotebookChart LineChart(string title, double[] x, double[] y)

Parameters

nametypedefaultdescription
titleText—
xNumber Array—
yNumber Array—

Returns

resultNotebook Chart
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Notebook Outputs
Package
Divooka Notebook

Markdown

Function

Show text as Markdown.

Signature
Markdown(text: Text) -> Notebook Markdown
NotebookMarkdown Markdown(string text)

Parameters

nametypedefaultdescription
textText—

Returns

resultNotebook Markdown
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Notebook Outputs
Package
Divooka Notebook

Picture

Function

Show a picture file with a caption.

Signature
Picture(path: Text, caption: Text) -> Notebook Picture
NotebookPicture Picture(string path, string caption = "")

Parameters

nametypedefaultdescription
pathText—
captionText—

Returns

resultNotebook Picture
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Notebook Outputs
Package
Divooka Notebook

Plot Function

Function

A line chart of a function, sampled across a range: what to return to show how something varies, without building the numbers first.

Signature
PlotFunction -> Notebook Chart
    title: Text
    from: Number
    to: Number
    function: Func<Number, Number>
    samples: Integer
    xLabel: Text
    yLabel: Text
NotebookChart PlotFunction(
    string title,
    double from,
    double to,
    Func<double, double> function,
    int samples = 101,
    string xLabel = "",
    string yLabel = "")

Parameters

nametypedefaultdescription
titleText—
fromNumber—
toNumber—
functionFunc<Number, Number>—The function to draw - a Function graph from a number to a number, made with Edit Function on this pin.
samplesInteger101How many points to draw it with, from 2 to 2000.
xLabelText—
yLabelText—

Returns

resultNotebook Chart
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Notebook Outputs
Package
Divooka Notebook

Plot With Parameter

Function

A line chart of a function of a number and a parameter, sampled across a range with the parameter held: what to return when an input moves the curve, such as a slider setting where its peak is.

Signature
PlotWithParameter -> Notebook Chart
    title: Text
    from: Number
    to: Number
    parameter: Number
    function: Func<Number, Number, Number>
    samples: Integer
    xLabel: Text
    yLabel: Text
NotebookChart PlotWithParameter(
    string title,
    double from,
    double to,
    double parameter,
    Func<double, double, double> function,
    int samples = 101,
    string xLabel = "",
    string yLabel = "")

Parameters

nametypedefaultdescription
titleText—
fromNumber—
toNumber—
parameterNumber—
functionFunc<Number, Number, Number>—The function to draw, of the sampled number and the parameter - a Function graph made with Edit Function on this pin.
samplesInteger101How many points to draw it with, from 2 to 2000.
xLabelText—
yLabelText—

Returns

resultNotebook Chart

Remarks

The parameter is passed rather than stored and read back because the order a Function graph runs its unconnected nodes in is not defined: a data member set in the same function as the chart might be set after the chart has already been sampled.

Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Notebook Outputs
Package
Divooka Notebook

Scatter Chart

Function

A scatter chart of points.

Signature
ScatterChart -> Notebook Chart
    title: Text
    x: Number Array
    y: Number Array
NotebookChart ScatterChart(string title, double[] x, double[] y)

Parameters

nametypedefaultdescription
titleText—
xNumber Array—
yNumber Array—

Returns

resultNotebook Chart
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Notebook Outputs
Package
Divooka Notebook

Series

Function

A named run of numbers for NotebookOutputs.Chart.

Signature
Series -> Notebook Series
    name: Text
    x: Number Array
    y: Number Array
NotebookSeries Series(string name, double[] x, double[] y)

Parameters

nametypedefaultdescription
nameText—
xNumber Array—Empty when only the order of the values matters.
yNumber Array—

Returns

resultNotebook Series
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Notebook Outputs
Package
Divooka Notebook