|
26 | 26 | from IPython.core.autocall import ZMQExitAutocall
|
27 | 27 | from IPython.core.displaypub import DisplayPublisher
|
28 | 28 | from IPython.core.error import UsageError
|
| 29 | +from IPython.core.history import HistoryOutput |
29 | 30 | from IPython.core.interactiveshell import InteractiveShell, InteractiveShellABC
|
30 | 31 | from IPython.core.magic import Magics, line_magic, magics_class
|
31 | 32 | from IPython.core.magics import CodeMagics, MacroToEdit # type:ignore[attr-defined]
|
32 | 33 | from IPython.core.usage import default_banner
|
33 |
| -from IPython.core.history import HistoryOutput |
34 | 34 | from IPython.display import Javascript, display
|
35 | 35 | from IPython.utils import openpy
|
36 | 36 | from IPython.utils.process import arg_split, system # type:ignore[attr-defined]
|
@@ -116,7 +116,7 @@ def publish( # type:ignore[override]
|
116 | 116 | update : bool, optional, keyword-only
|
117 | 117 | If True, send an update_display_data message instead of display_data.
|
118 | 118 | """
|
119 |
| - if self.shell is not None and hasattr(self.shell, 'history_manager'): |
| 119 | + if self.shell is not None and hasattr(self.shell, "history_manager"): |
120 | 120 | outputs = self.shell.history_manager.outputs
|
121 | 121 | outputs[self.shell.execution_count].append(
|
122 | 122 | HistoryOutput(output_type="display_data", bundle=data)
|
|
0 commit comments