Show More
@@ -279,6 +279,13 b' def display(*objs, include=None, exclude=None, metadata=None, transient=None, di' | |||
|
279 | 279 | from IPython.display import display |
|
280 | 280 | |
|
281 | 281 | """ |
|
282 | from IPython.core.interactiveshell import InteractiveShell | |
|
283 | ||
|
284 | if not InteractiveShell.initialized(): | |
|
285 | # Directly print objects. | |
|
286 | print(*objs) | |
|
287 | return | |
|
288 | ||
|
282 | 289 | raw = kwargs.pop('raw', False) |
|
283 | 290 | if transient is None: |
|
284 | 291 | transient = {} |
@@ -293,8 +300,6 b' def display(*objs, include=None, exclude=None, metadata=None, transient=None, di' | |||
|
293 | 300 | if transient: |
|
294 | 301 | kwargs['transient'] = transient |
|
295 | 302 | |
|
296 | from IPython.core.interactiveshell import InteractiveShell | |
|
297 | ||
|
298 | 303 | if not raw: |
|
299 | 304 | format = InteractiveShell.instance().display_formatter.format |
|
300 | 305 |
General Comments 0
You need to be logged in to leave comments.
Login now