Execute code block

For vimwiki I used vim-medieval to execute code blocks and save the output to another code block (kinda like jupyter notebooks, just with no state shared across blocks as each block was just piped to an interpreter via stdin).
Is there already a plugin that supports this or would I have to write my own?

I found a Plugin that does nearly exactly what I was looking for: