1.0.20 • Published 5 years ago

idyll-plugin-observable v1.0.20

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Idyll Observable plugin

Enables usage of notebooks created using ObservableHQ in Idyll documents. Idyll variables can be bound to properties of the Observable cells and will work reactively as expected.

Note currently this reactivity only goes one way, from Idyll --> Observable. Changes made via Observable widgets do not currently get passed back to Idyll.

Installation

$ npm install --save-dev idyll-plugin-observable

Add it to your idyll configuration in package.json:

"idyll": {
  "compiler": {
    "postProcessors": ["idyll-plugin-observable"]
  }
}

Notebook cells can then be included in Idyll markup using markup like:

[Observable
  notebook:"https://observablehq.com/@mathisonian/d3-change-line-chart"
  showCells:`['chart']`
  variables:`{
    lineWidth: lineWidth,
    height: height
  }` /]

Known Issues

The plugin pulls the notebook code and all dependencies down at compile time. Currently, the first time you do this the compilation will fail with a "component not found error". If you see this message, re-compile and things should work properly.

1.0.20

5 years ago

1.0.19

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago