[PyCharm] PY-74366 Jupyter/RemoteDev (fix): Fixed outputs update on startup and cell run.

GitOrigin-RevId: 98119e2cf33fd001d908d93a487452d183b01307
This commit is contained in:
Nikita Pavlenko
2025-02-17 18:13:11 +01:00
committed by intellij-monorepo-bot
parent f375ed2eb2
commit 6f048c8880

View File

@@ -162,7 +162,8 @@ class EditorCell(
CELL_EXTENSION_CONTAINER_KEY.get(this)?.values?.forEach { action(it) }
}
fun updateOutputs(keys: List<NotebookOutputDataKey>) {
/** 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<NotebookOutputDataKey>): Unit = editor.updateManager.update {
outputs.outputs.set(keys.map { EditorCellOutput(it) })
}