You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- CLI `observable-prerender-open`, to open a given notebook in a Puppeteer browser for easier debugging.
8
+
- CLI an alpha version of `observable-prerender-benchmark`, to benchmark a given notebook's cell execution time.
9
+
- CLI programs now have `op-*` aliases cooresponding to `observable-prerender-*` programs.
10
+
-`--format=html`, `--format=text`, `--format=json` options for `observable-prerender`.
11
+
12
+
## Changed
13
+
14
+
- CLI and Node library use `rw` instead of `fs`, allowing for easier `stdin`/`stdout` usage with `path="-"`.
15
+
- Added `notebook.html(cell)` utility that returns the `.outerHTML` value of a given cell.
16
+
- In `observable-prerender`, `--quiet` has been depracated in favor of `--verbose`, meaning progress logs are now opt-in.
17
+
-`notebook.waitFor(cell)`'s 2nd parameter, `status`, has been deprecated. Now only waiting for a cell to become `fullfilled` is supported.
18
+
3
19
## [v0.1.0] - 2020-08-07
4
20
5
21
### Added
6
22
7
23
- New CLI programs `observable-prerender` and `observable-prerender-animate`.
8
24
-`width`, `height`, and `headless` options to `load()`'s config parameter, for setting the width/height of a new Puppeteer browser, and for determining of that browser should be headless.
9
-
-`notebook.fileAttachments`, for replacing Observable notebook FileAttachments with local files.
25
+
-`notebook.fileAttachments`, for replacing Observable notebook FileAttachments with local files.
-`notebook` <[string]> ID of the notebook on observablehq.com, like `@d3/bar-chart` or `@asg017/bitmoji`. For unlisted notebooks, be sure to include the `d/` prefix (e.g. `d/27a0b05d777304bd`).
147
+
-`notebook` <[string]> ID of the notebook on observablehq.com, like `@d3/bar-chart` or `@asg017/bitmoji`. For unlisted notebooks, be sure to include the `d/` prefix (e.g. `d/27a0b05d777304bd`).
148
148
-`targets` <[Array]<[string]>> array of cell names that will be evaluated. Every cell in `targets` (and the cells they depend on) will be evaluated and render to the page's DOM. If not supplied, then all cells (including anonymous ones) will be evaluated by default.
149
149
150
150
-`config` is an object with key/values for more control over how to load the notebook.
@@ -208,7 +208,6 @@ Pre-render the given notebook, iterate through the values of the `cellIterator`
208
208
209
209
Run `observable-prerender-animate --help` to get a full list of options.
210
210
211
-
212
211
## Caveats
213
212
214
213
### Beta
@@ -226,3 +225,19 @@ You won't be able to make neat screencasts from all Observable notebooks. Puppet
226
225
So what should you screenshot, exactly? It depends on your notebook. You probably need to have some counter/index/pointer that changes the graph when updated (see [scrubber](https://observablehq.com/@mbostock/scrubber)). You can programmatically redefine that cell using `notebook.redefine` in some loop, then screenshot the graph once the changes propagate (`notebook.waitFor`). But keep in mind, this may work for JS transitions, but CSS animations may not render properly or in time, so it really depends on how you built your notebook. it's super hard to get it right without some real digging.
227
226
228
227
If you run into any issues getting frames for a animation, feel free to open an issue!
228
+
229
+
## "Benchmarking"
230
+
231
+
In this project, "Benchmarking" can refer to three different things: the `op-benchmark` CLI tool, internal benchmarks for the package, and external benchmarks for comparing against other embedding options.
232
+
233
+
### `op-benchmark` for Benchmarking Notebooks
234
+
235
+
`op-benchmark` is a CLI tool bundled with `observable-prerender` that measures how long every cell's execution time for a given notebook. It's meant to be used by anyone to test their own notebooks, and is part of the `observable-prerender` suite of tools.
236
+
237
+
### Internal Benchmarking
238
+
239
+
`/benchmark-internal` is a series of tests performed against `observable-prerender` to ensure `observable-prerender` runs as fast as possible, and that new changes to drastically effect the performace of the tool. This is meant to be used by `observable-prerender` developers, not by users of the `observable-prerender` tool.
240
+
241
+
#### External Benchmarking
242
+
243
+
`/benchmark-external` contains serveral tests to compare `observable-prerender` with other Observable notebook embeding options. A common use-case for `observable-prerender` is to pre-render Observable notebooks for faster performance for end users, so these tests are to ensure and measure how much faster `observable-prerender` actually is. This is meant for `observable-prerender` developers, not for general users.
0 commit comments