Show More
@@ -253,7 +253,7 b' def import_pylab(user_ns, import_all=True):' | |||
|
253 | 253 | exec s in user_ns |
|
254 | 254 | |
|
255 | 255 | |
|
256 |
def configure_ |
|
|
256 | def configure_inline_backend(shell, user_ns=None): | |
|
257 | 257 | """Configure an IPython shell object for matplotlib use. |
|
258 | 258 | |
|
259 | 259 | Parameters |
@@ -280,7 +280,6 b' def configure_shell(shell, backend, user_ns=None):' | |||
|
280 | 280 | if cfg not in shell.configurables: |
|
281 | 281 | shell.configurables.append(cfg) |
|
282 | 282 | |
|
283 | if backend == backends['inline']: | |
|
284 | 283 |
|
|
285 | 284 |
|
|
286 | 285 |
|
@@ -324,7 +323,11 b' def pylab_activate(user_ns, gui=None, import_all=True, shell=None):' | |||
|
324 | 323 | gui, backend = find_gui_and_backend(gui) |
|
325 | 324 | activate_matplotlib(backend) |
|
326 | 325 | import_pylab(user_ns, import_all) |
|
327 | configure_shell(shell, backend, user_ns) | |
|
326 | ||
|
327 | # The inline backend is only used by GUI shells | |
|
328 | if backend == backends['inline']: | |
|
329 | configure_inline_backend(shell, backend, user_ns) | |
|
330 | ||
|
328 | 331 | print """ |
|
329 | 332 | Welcome to pylab, a matplotlib-based Python environment [backend: %s]. |
|
330 | 333 | For more information, type 'help(pylab)'.""" % backend |
General Comments 0
You need to be logged in to leave comments.
Login now