Show More
@@ -25,6 +25,6 b' has been made into a component, this module will be sent to deathrow.' | |||||
25 |
|
25 | |||
26 | def get(): |
|
26 | def get(): | |
27 | """Get the global InteractiveShell instance.""" |
|
27 | """Get the global InteractiveShell instance.""" | |
28 |
from IPython. |
|
28 | from IPython.core.interactiveshell import InteractiveShell | |
29 |
return |
|
29 | return InteractiveShell.instance() | |
30 |
|
30 |
@@ -902,7 +902,7 b' class VerboseTB(TBTools):' | |||||
902 | self.color_scheme_table.active_scheme_name) |
|
902 | self.color_scheme_table.active_scheme_name) | |
903 | # the system displayhook may have changed, restore the original |
|
903 | # the system displayhook may have changed, restore the original | |
904 | # for pdb |
|
904 | # for pdb | |
905 |
display_trap = DisplayTrap( |
|
905 | display_trap = DisplayTrap(hook=sys.__displayhook__) | |
906 | with display_trap: |
|
906 | with display_trap: | |
907 | self.pdb.reset() |
|
907 | self.pdb.reset() | |
908 | # Find the right frame so we don't pop up inside ipython itself |
|
908 | # Find the right frame so we don't pop up inside ipython itself |
General Comments 0
You need to be logged in to leave comments.
Login now