Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions python/jupyterlab_widgets/src/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ export abstract class LabWidgetManager
}

/**
* Synchronously get the state of the live widgets in the widget manager.
* Synchronously get the state of the widget models in the widget manager.
*
* This includes all of the live widget models, and follows the format given in
* This includes all of the widget models, and follows the format given in
* the @jupyter-widgets/schema package.
*
* @param options - The options for what state to return.
Expand All @@ -298,9 +298,7 @@ export abstract class LabWidgetManager
get_state_sync(options: IStateOptions = {}): ReadonlyPartialJSONValue {
const models = [];
for (const model of this._modelsSync.values()) {
if (model.comm_live) {
models.push(model);
}
models.push(model);
}
return serialize_state(models, options);
}
Expand Down