Show More
@@ -598,6 +598,10 b' class IPKernelApp(KernelApp, InteractiveShellApp):' | |||||
598 | selecting a particular matplotlib backend and loop integration. |
|
598 | selecting a particular matplotlib backend and loop integration. | |
599 | """ |
|
599 | """ | |
600 | ) |
|
600 | ) | |
|
601 | pylab_import_all = Bool(True, config=True, | |||
|
602 | help="""If true, an 'import *' is done from numpy and pylab, | |||
|
603 | when using pylab""" | |||
|
604 | ) | |||
601 | def initialize(self, argv=None): |
|
605 | def initialize(self, argv=None): | |
602 | super(IPKernelApp, self).initialize(argv) |
|
606 | super(IPKernelApp, self).initialize(argv) | |
603 | self.init_shell() |
|
607 | self.init_shell() | |
@@ -635,7 +639,8 b' class IPKernelApp(KernelApp, InteractiveShellApp):' | |||||
635 | kernel.record_ports(self.ports) |
|
639 | kernel.record_ports(self.ports) | |
636 |
|
640 | |||
637 | if self.pylab: |
|
641 | if self.pylab: | |
638 | pylabtools.import_pylab(kernel.shell.user_ns, backend, |
|
642 | import_all = self.pylab_import_all | |
|
643 | pylabtools.import_pylab(kernel.shell.user_ns, backend, import_all, | |||
639 | shell=kernel.shell) |
|
644 | shell=kernel.shell) | |
640 |
|
645 | |||
641 | def init_shell(self): |
|
646 | def init_shell(self): |
General Comments 0
You need to be logged in to leave comments.
Login now