This seems within reach of Livebooks. I typically write livebooks attached to my running elixir dev node which just a plain elixir project. So it’s a side-by-side notebook and library development all in the same runtime. Elixir’s VM is highly observable so a lot of what you mention should be possible out of the box, but I’m not sure if anyone has glued all those pieces together in a neat prebuilt package.