An idea. And I should admit that I haven't even tried if it already works. 😃 https://github.com/BetterThanTomorrow/joyride/discussions/114
This already works in nbb, you could just steal the code from there
A demo of using Clojure to solve Advent of Code problems in your editor, using VS Code + #joyride. https://www.youtube.com/watch?v=0rJvOtbJDyI