Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/idyll-lang/idyll-plugin-observable
Tools for embedding observable notebooks in Idyll documents
https://github.com/idyll-lang/idyll-plugin-observable
Last synced: 14 days ago
JSON representation
Tools for embedding observable notebooks in Idyll documents
- Host: GitHub
- URL: https://github.com/idyll-lang/idyll-plugin-observable
- Owner: idyll-lang
- License: mit
- Created: 2019-05-12T02:20:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-12T02:37:07.000Z (over 5 years ago)
- Last Synced: 2024-10-30T00:54:57.350Z (21 days ago)
- Language: JavaScript
- Size: 258 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`:
```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.