Hacker News new | ask | show | jobs
by thibaut_barrere 81 days ago
I am considering doing something similar, but embedding “livebook” bits so that I can run code & liveviews right in the middle of my posts in the future.

Curious to know if anyone went that route (or something similar) already!

3 comments

I have done this but with Clojure, I needed to use a dynamic language with responsible state management (via Re-frame), but also had a good REPL. Seamless REPL integration with the language itself made it easier as most of the tools I needed were pre-existing.
this might be of interest to you https://popcorn.swmansion.com
After a quick search it seems like support for embedding livebook is limited, the livebook devs didn't have any interest in working on that, the best you've got is that it can work in iframes while running off a different port perhaps. iframe support was added ~2023. Some JS might be needed to forward some events like cmd+c/v/x.