Module: Notebook

JavaScript execution within a document, inspired by Mathematica's and Jupyter's notebook interfaces.
Version:
  • 3.0
Author:
Source:

Classes

Cell
File
Result
Run

Members

(inner, constant) cells :Array.<module:Notebook~Cell>

List of all views, but for result.
Type:
Source:

(inner, constant) files :Object.<string, module:Notebook~File>

Collection of all File objects by their ids.
Type:
Source:

(inner, constant) printLimit :number

Default for the maximum number of printed lines.
Type:
  • number
Source:

(inner) result :module:Notebook~Result

Singleton: result area and active JavaScript interpreter, if any.
Type:
Source:

(inner, constant) runs :Array.<module:Notebook~Run>

List of all executable code.
Type:
Source:

(inner) worker :string

Path to code acting as JavaScript interpreter, can be set by init().
Type:
  • string
Source:

Methods

(inner) enable(_flag)

Changes the user interface state and stores in enable.state.
Parameters:
Name Type Description
_flag boolean new state.
true false
Run edit, run
File edit
Result close terminate
Source:

(inner) init(_root, _workeropt)

Creates the notebook infrastructure.
Parameters:
Name Type Attributes Description
_root jQuery parent(s) of HTML structure(s) with cells.
_worker string <optional>
path to JavaScript interpreter.
Source:
See:
  • enable