2023-09-29 10:53:14 +02:00
|
|
|
# Commedia: Arc Diagram per marcatura sintattica
|
2023-04-27 12:43:37 +02:00
|
|
|
|
2024-01-10 16:06:28 +01:00
|
|
|
https://observablehq.com/@cesare/commarcdiag@1540
|
2023-04-27 12:43:37 +02:00
|
|
|
|
|
|
|
View this notebook in your browser by running a web server in this folder. For
|
|
|
|
example:
|
|
|
|
|
|
|
|
~~~sh
|
|
|
|
npx http-server
|
|
|
|
~~~
|
|
|
|
|
|
|
|
Or, use the [Observable Runtime](https://github.com/observablehq/runtime) to
|
|
|
|
import this module directly into your application. To npm install:
|
|
|
|
|
|
|
|
~~~sh
|
|
|
|
npm install @observablehq/runtime@5
|
2024-01-10 16:06:28 +01:00
|
|
|
npm install https://api.observablehq.com/d/d019e1db56ab1d8c@1540.tgz?v=3
|
2023-04-27 12:43:37 +02:00
|
|
|
~~~
|
|
|
|
|
|
|
|
Then, import your notebook and the runtime as:
|
|
|
|
|
|
|
|
~~~js
|
|
|
|
import {Runtime, Inspector} from "@observablehq/runtime";
|
2023-09-29 10:53:14 +02:00
|
|
|
import define from "@cesare/commarcdiag";
|
2023-04-27 12:43:37 +02:00
|
|
|
~~~
|
|
|
|
|
|
|
|
To log the value of the cell named “foo”:
|
|
|
|
|
|
|
|
~~~js
|
|
|
|
const runtime = new Runtime();
|
|
|
|
const main = runtime.module(define);
|
|
|
|
main.value("foo").then(value => console.log(value));
|
|
|
|
~~~
|