Update notebook-visualizer with v3 API?

I wonder if the https://observablehq.com/@mbostock/notebook-visualizer notebook might be updated to use the v3 API.

I think we’ll eventually be able to do a cleaner implementation of the notebook visualizer for v3 modules, using the actual runtime … but for starters here’s a dirty, dirty version that consumes the v3 format.

Here’s the diff:

It renders the equivalent output as the current Notebook Visualizer for all the notebooks I’ve tried.

1 Like

wow, it was not straightforward at all. Thanks @jashkenas, it’s very useful, it helps to understand the API.