Published
Edited
Sep 5, 2020
4 stars
Insert cell
Insert cell
Insert cell
umd = require("agentscript")
Insert cell
umd1 = require("https://unpkg.com/agentscript")
Insert cell
Insert cell
esm = import("agentscript")
Insert cell
esm1 = import("https://unpkg.com/agentscript?module")
Insert cell
md`
The require & import directives can also be used on the repo's github page. Note we use a CNAME to forward from agentscript.org to backspaces.github.io/agentscript.

These are the latest, prior to the next *npm publish* so are risky.
* umd3 = require("https://agentscript.org/dist/agentscript.umd.js")
* esm3 = import("https://agentscript.org/dist/agentscript.esm.js")
`
Insert cell
umd3 = require("https://agentscript.org/dist/agentscript.umd.js")
Insert cell
esm3 = import("https://agentscript.org/dist/agentscript.esm.js")
Insert cell
Insert cell
HelloModel = (await import("https://agentscript.org/models/HelloModel.js")).default
Insert cell
model = new HelloModel()
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