We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1585d5 commit c20f09eCopy full SHA for c20f09e
ads/common/ipython.py
@@ -63,14 +63,12 @@ def configure_plotting():
63
64
try:
65
import IPython
66
-
+ shell = IPython.get_ipython()
67
global orig_ipython_traceback
68
- if IPython.core.interactiveshell.InteractiveShell.showtraceback != _log_traceback:
69
- orig_ipython_traceback = (
70
- IPython.core.interactiveshell.InteractiveShell.showtraceback
71
- )
+ if shell.showtraceback != _log_traceback:
+ orig_ipython_traceback = shell.showtraceback
72
73
# Override the default showtraceback behavior of ipython, to show only the error message and log the stacktrace
74
- IPython.core.interactiveshell.InteractiveShell.showtraceback = _log_traceback
+ shell.showtraceback = _log_traceback
75
except ModuleNotFoundError:
76
pass
0 commit comments