JavaScript execution within a document, inspired by
Mathematica's
and
Jupyter's
notebook interfaces.
- Version:
- 3.0
- Copyright:
- © 2022 Axel T. Schreiner
- Source:
Classes
Members
(inner, constant) cells :Array.<module:Notebook~Cell>
List of all views, but for
result
.
Type:
- Array.<module:Notebook~Cell>
- Source:
(inner, constant) files :Object.<string, module:Notebook~File>
Collection of all
File
objects by their ids.
Type:
- Object.<string, module:Notebook~File>
- 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:
- Array.<module:Notebook~Run>
- 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.
|
- 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