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
This has been an issue always, but it becomes far more critical with a client like the Qt console that can handle complex multiline input. Python by default won't give a traceback of interactively entered input, which means that errors on complex multiline input are very hard to debug.
At the old terminal console, we typically used %run for complex codes, so tracebacks can be read from a file. But now we're typing complex codes even at the terminal, so we need to have good tracebacks there.
Approach: create a scratch file with the last input being executed as the first step of exception traceback construction. This will allow the python exception machinery to find the information it wants.
The name of the scratch file should be constant through the life of the kernel, so that it's hardcoded in the compile() calls.
The text was updated successfully, but these errors were encountered:
Complete implementation of interactive traceback support.
Ever since IPython started, we've had no proper tracebacks for
interactively entered code. The terminal version was fairly
uncomfortable for more than just a few lines of code, so this was
never too big of a deal. But the new architecture allows clients with
complex multiline input, and having proper tracebacks becomes now
critical for real-world use.
Thanks to Robert Kern for key implementation ideas and original patch.
Ever since IPython started, we've had no proper tracebacks for
interactively entered code. The terminal version was fairly
uncomfortable for more than just a few lines of code, so this was
never too big of a deal. But the new architecture allows clients with
complex multiline input, and having proper tracebacks becomes now
critical for real-world use.
Thanks to Robert Kern for key implementation ideas and original patch.
Closesipythongh-177.
Ever since IPython started, we've had no proper tracebacks for
interactively entered code. The terminal version was fairly
uncomfortable for more than just a few lines of code, so this was
never too big of a deal. But the new architecture allows clients with
complex multiline input, and having proper tracebacks becomes now
critical for real-world use.
Thanks to Robert Kern for key implementation ideas and original patch.
Closesipythongh-177.
This has been an issue always, but it becomes far more critical with a client like the Qt console that can handle complex multiline input. Python by default won't give a traceback of interactively entered input, which means that errors on complex multiline input are very hard to debug.
At the old terminal console, we typically used %run for complex codes, so tracebacks can be read from a file. But now we're typing complex codes even at the terminal, so we need to have good tracebacks there.
Approach: create a scratch file with the last input being executed as the first step of exception traceback construction. This will allow the python exception machinery to find the information it wants.
The name of the scratch file should be constant through the life of the kernel, so that it's hardcoded in the compile() calls.
The text was updated successfully, but these errors were encountered: