I love this tool. What I really like is the fact that a cell in a notebook can be imported as a function as you would do with packages (cell->cell) and of course loading npm packages (npm->cell). However, it is not as easy to do the other way around (cell->npm).
It would be amazing if we could export notebooks as npm modules and use them in the same easy way, importing other notebooks works here.
The problem that I encounter is the following: I want to be able to just export a notebook and use the function that I defined in it, without doing any crazy runtime scripting. What I end up doing instead to avoid this issue is to copy paste the code in a new npm module and import this module in the notebook.
I have seen https://beta.observablehq.com/@benatkin/building-an-npm-module-with-observable but that’s really an adhoc solution that I would like to avoid.