Closed rpep closed 8 years ago
Got this naively working. By redefining puts with a short Tcl script and evaluating this when the kernel launches, can get it to return a value. This gets simple one line commands working in the notebook, but does not work for multiple commands in a cell, as it suppresses all but the last puts statement. Need to think about the logic of this...
Additional problem: a user could simply redefine puts as it is not protected, and break the notebook.
Fixed
Return value of the function currently is stderr I think, but need to dig into Tkinter code to see what it is doing under the hood