##// END OF EJS Templates
Backport PR #10634: fix of display() instantiates a shell in pure Python #10617
Matthias Bussonnier -
Show More
@@ -277,6 +277,13 b' def display(*objs, **kwargs):'
277 277 from IPython.display import display
278 278
279 279 """
280 from IPython.core.interactiveshell import InteractiveShell
281
282 if not InteractiveShell.initialized():
283 # Directly print objects.
284 print(*objs)
285 return
286
280 287 raw = kwargs.pop('raw', False)
281 288 include = kwargs.pop('include', None)
282 289 exclude = kwargs.pop('exclude', None)
@@ -294,8 +301,6 b' def display(*objs, **kwargs):'
294 301 if transient:
295 302 kwargs['transient'] = transient
296 303
297 from IPython.core.interactiveshell import InteractiveShell
298
299 304 if not raw:
300 305 format = InteractiveShell.instance().display_formatter.format
301 306
General Comments 0
You need to be logged in to leave comments. Login now