diff --git a/notebooks/visualization/src/com/intellij/notebooks/visualization/ui/EditorCell.kt b/notebooks/visualization/src/com/intellij/notebooks/visualization/ui/EditorCell.kt index 3a85c3348930..500cfc8bcc80 100644 --- a/notebooks/visualization/src/com/intellij/notebooks/visualization/ui/EditorCell.kt +++ b/notebooks/visualization/src/com/intellij/notebooks/visualization/ui/EditorCell.kt @@ -162,7 +162,8 @@ class EditorCell( CELL_EXTENSION_CONTAINER_KEY.get(this)?.values?.forEach { action(it) } } - fun updateOutputs(keys: List) { + /** Called only in RD mode with a ready list of NotebookOutputDataKey, to avoid reading data from JSON which is missing on the frontend. */ + fun updateOutputs(keys: List): Unit = editor.updateManager.update { outputs.outputs.set(keys.map { EditorCellOutput(it) }) }