Too much thread-nesting here :) I had the same problem even in Mathematica with long-running cells. Fundamentally it is hard problem to solve in notebook, compared to terminal. Here is more explanation: https://mail.scipy.org/pipermail/ipython-user/2013-July/0128...