Published
Edited
Feb 21, 2022
Insert cell
Insert cell
Insert cell
await taylor.eval(tval)
Insert cell
taylor._.read(tval)
Insert cell
cbor_enc = cbor.encode(taylor._.read(tval))
Insert cell
cbor_dec = cbor.decode(cbor_enc)
Insert cell
taylor._.print(cbor_dec)
Insert cell
taylor
Insert cell
Insert cell
Insert cell
Insert cell
taylor.eval('(seq "Vector or list or string results in a list")')
Insert cell
Insert cell
Insert cell
ses = import('https://unpkg.com/ses@0.13.3/index.js?module')
Insert cell
window.lockdown()
Insert cell
{
window.lockdown();
capability.counter = 0;
capability.c = window.harden({
inc() {
capability.counter++;
},
do(str) {
capability.promise = taylor.eval(str)
capability.promise.then((res)=>{capability.out = res})
}
});

console.log(Object.isFrozen(capability.c));
// true
console.log(Object.isFrozen(capability.c.inc));
// true
}
Insert cell
capability = ({c:null,counter:null,out:null})
Insert cell
capability.c.inc()
Insert cell
capability.c.do("(+ 25 78)")
Insert cell
taylor = require('@ark-us/taylor@0.0.8')
Insert cell
import {Textarea} from "@observablehq/inputs"
Insert cell
import {Button} from "@observablehq/inputs"
Insert cell
cbor = require('cbor-web@8.1.0/dist/cbor.js')
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more