##// END OF EJS Templates
Avoid calling inline config if no shell - per @minrk feedback on #1052
Fernando Perez -
Show More
@@ -267,9 +267,6 b' def configure_inline_support(shell, backend, user_ns=None):'
267 267 A namespace where all configured variables will be placed. If not given,
268 268 the `user_ns` attribute of the shell object is used.
269 269 """
270 if shell is None:
271 return
272
273 270 # If using our svg payload backend, register the post-execution
274 271 # function that will pick up the results for display. This can only be
275 272 # done with access to the real shell object.
@@ -333,6 +330,7 b' def pylab_activate(user_ns, gui=None, import_all=True, shell=None):'
333 330 gui, backend = find_gui_and_backend(gui)
334 331 activate_matplotlib(backend)
335 332 import_pylab(user_ns, import_all)
333 if shell is not None:
336 334 configure_inline_support(shell, backend, user_ns)
337 335
338 336 print """
General Comments 0
You need to be logged in to leave comments. Login now