rpep / tcl_kernel

A Jupyter Kernel for the Tcl language.
BSD 3-Clause "New" or "Revised" License
19 stars 8 forks source link

Need to pipe stdout into the notebook interface #1

Closed rpep closed 8 years ago

rpep commented 8 years ago

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

rpep commented 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...

rpep commented 8 years ago

Additional problem: a user could simply redefine puts as it is not protected, and break the notebook.

rpep commented 8 years ago

Fixed