Show More
@@ -61,6 +61,7 from IPython.utils.text import LSString, SList, format_screen | |||
|
61 | 61 | from IPython.utils.timing import clock, clock2 |
|
62 | 62 | from IPython.utils.warn import warn, error |
|
63 | 63 | from IPython.utils.ipstruct import Struct |
|
64 | from IPython.config.application import Application | |
|
64 | 65 | |
|
65 | 66 | #----------------------------------------------------------------------------- |
|
66 | 67 | # Utility functions |
@@ -3442,7 +3443,17 Defaulting color scheme to 'NoColor'""" | |||
|
3442 | 3443 | Backend in use: Qt4Agg |
|
3443 | 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 | 3458 | def magic_tb(self, s): |
|
3448 | 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