nwhitehead / pineapple

http://nwhitehead.github.io/pineapple/
Other
352 stars 26 forks source link

PROBLEM: big output makes app non-responsive #4

Open nwhitehead opened 9 years ago

nwhitehead commented 9 years ago

If you output lots of stuff from a cell, and the output needs to be processed by the front-end, you can get in situations where the user interface is not responding for multiple seconds. For example,

def f(x): return f(x)

This causes a stack overflow with BIG backtrace. Syntax highlighting the backtrace takes a long time, UI is dead until it is processed and displayed.

What should happen: large output is chunked and processed bit by bit, or cut off. Or UI is on different thread, keeps being active while we wait.

Possible workaround: set much smaller stacksize for this specific problem.