npm install -g editable-cli) create new file
editable-test.js and run
Create few cells using
def global function (try saving the file between each edit to see live updates):
def("a", 10)- defines cell
ato equal to
def("b", 20)- defined cell
bto equal to
def("sum", (a, b) => a + b)- defines
sumto be sum of
b, changing either of those cells will result in updated
Currently edited file is watched for changes, and frontend automatically refreshes (without full-page reloads) while keeping the cell state intact (unless that cell was changed).
More examples in
Named by Peter van Hardenberg.
I like the idea of notebooks, but I also really like my text editor.
editable-cli allows me to have both.
It was also fun getting to know observable/notebook-runtime.
npm install -g editable-cli
- open URL logged to console