in Jupyter one can use the python %%capture magic to redirect stdout, stderr into a variable. How do you do that in Julia with Juypter? I, most of the times, only have a pure Julia kernel running.
Maybe as a bonus: Is there a way to “tie” the output to a specific cell as well? I want to run asynchronous tasks and if I switch cells, they start to write into the standard output of other cells, which is somehow annoying