You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following will cause all IPython 0.13.1 notebook pages to become unresponsive:
class Blah(object):
def recursive_function(self):
return self.recursive_function()
b = Blah()
b.recursive_function()
This will cause all notebook pages open in the browser to become unresponsive and need to be killed (tested current Chrome and Firefox). Firefox will report that something in utils.js has become unresponsive. Just to be clear, this would otherwise be expected to raise RuntimeError: maximum recursion depth exceeded.
The text was updated successfully, but these errors were encountered:
The error is being raised - the issue is simply rendering the massive traceback in javascript. I expect it's the regular-expression operation that turns ANSI colors into css that's the culprit. It's possible that is not written in an appropriately efficient way, and we should probably also have some truncation of tracebacks to protect against this sort of thing.
ansispan function adapted from mmalecki/ansispan
The easiest way to see how slow the old way was is to create a very large traceback (e.g. max recursion), which bring everything to a screeching halt (even future page loads, if the output is saved). Now a max recursion error draws in a second or two.
closesipython#3198
The following will cause all IPython 0.13.1 notebook pages to become unresponsive:
This will cause all notebook pages open in the browser to become unresponsive and need to be killed (tested current Chrome and Firefox). Firefox will report that something in
utils.js
has become unresponsive. Just to be clear, this would otherwise be expected to raiseRuntimeError: maximum recursion depth exceeded
.The text was updated successfully, but these errors were encountered: