Show More
@@ -61,6 +61,7 b' from IPython.utils.text import LSString, SList, format_screen' | |||||
61 | from IPython.utils.timing import clock, clock2 |
|
61 | from IPython.utils.timing import clock, clock2 | |
62 | from IPython.utils.warn import warn, error |
|
62 | from IPython.utils.warn import warn, error | |
63 | from IPython.utils.ipstruct import Struct |
|
63 | from IPython.utils.ipstruct import Struct | |
|
64 | from IPython.config.application import Application | |||
64 |
|
65 | |||
65 | #----------------------------------------------------------------------------- |
|
66 | #----------------------------------------------------------------------------- | |
66 | # Utility functions |
|
67 | # Utility functions | |
@@ -3442,7 +3443,17 b' Defaulting color scheme to \'NoColor\'"""' | |||||
3442 | Backend in use: Qt4Agg |
|
3443 | Backend in use: Qt4Agg | |
3443 | For more information, type 'help(pylab)'. |
|
3444 | For more information, type 'help(pylab)'. | |
3444 | """ |
|
3445 | """ | |
3445 | self.shell.enable_pylab(s) |
|
3446 | ||
|
3447 | if Application.initialized(): | |||
|
3448 | app = Application.instance() | |||
|
3449 | try: | |||
|
3450 | import_all_status = app.pylab_import_all | |||
|
3451 | except AttributeError: | |||
|
3452 | import_all_status = True | |||
|
3453 | else: | |||
|
3454 | import_all_status = True | |||
|
3455 | ||||
|
3456 | self.shell.enable_pylab(s,import_all=import_all_status) | |||
3446 |
|
3457 | |||
3447 | def magic_tb(self, s): |
|
3458 | def magic_tb(self, s): | |
3448 | """Print the last traceback with the currently active exception mode. |
|
3459 | """Print the last traceback with the currently active exception mode. |
General Comments 0
You need to be logged in to leave comments.
Login now