Importing libraries from NPM into a notebook is simple and easy.
But I couldn’t find a way to load a library from JSR…
Would anyone have a working example?
Cheers
Importing libraries from NPM into a notebook is simple and easy.
But I couldn’t find a way to load a library from JSR…
Would anyone have a working example?
Cheers
Not notebooks, but for what it’s worth, JSR imports will be supported in the next release of Observable Framework:
JSR imports in Framework is fantastic!
I tried with esm.sh. I remember they added support for JSR.
And it looks like it works!
See the first cell here:
It’s a bit ugly because my library has an index.ts file intended for Node/Deno/Bun, so I have to retrieve a bundle I created specifically for the Web. But it works!