I would like to use Malt.jl to evaluate expressions in a workspace separate from the main thread running Julia. So far I have not been able to find a way to use Malt.jl and capture with IOCapture the different outputs of the code running in a Malt worker (output values, console outputs and errors).
For Example
import Malt
worker = Malt.Worker.();
expr = :(print("Hi");1+1;)
Malt.remote_eval_fetch(worker,:($expr))
How to capture from the last line of code what is painted on the console and the result of the operation. Also, if it is a plot
that is attempted to be executed, how to capture the output of the plot
?