Thanks, Stéphane, for the link. That package uses Julia as a TCP server, 
and passes the Julia code as a string. The result is returned in an 
IOBuffer. It is certainly an alternative to pasting the clipboard to the 
console, but does not solve my problems: print() and multi-line input is 
not handled properly, even though error messages can be captured by "try 
parse(...) catch err" constructs (not in the code).

Maybe the solution is to pre-process the Julia code to be evaluated, to 
handle print() and multi-line input in several parse() calls? Assuming that 
the output of the Julia console is impossible to capture in a Julia 
variable.

Reply via email to