On Sunday, June 29, 2014 12:04:00 PM UTC-4, Laszlo Hars wrote: > > Thanks Mike, this would allow fixing the problem, that display results > don't appear in STDOUT. The help says: > > Display "x" using the topmost applicable display in the display > stack, typically using the richest supported multimedia output for > "x", with plain-text "STDOUT" output as a fallback. > > Redefining display() with hard coded STDOUT as the first parameter could > be one way. Another is temporarily modify the "display stack", to put > STDOUT on the top. > > --- Can someone tell us how to do these correctly >
Just call pushdisplay(TextDisplay(STDOUT)) (Do this after the redirect_stdout in my example code.) (Though I think it is should probably be considered a bug that this is needed when running "julia foo.jl", i.e. in non-interactive mode.)
