jupyterlab-ipyflow 0.0.103 → 0.0.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +7 -6
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -178,11 +178,13 @@ const connectToComm = (session, notebook) => {
|
|
|
178
178
|
if (args.name !== 'executionCount' || args.newValue === null) {
|
|
179
179
|
return;
|
|
180
180
|
}
|
|
181
|
-
const
|
|
182
|
-
const content_by_cell_id = {};
|
|
181
|
+
const cell_metadata_by_id = {};
|
|
183
182
|
notebook.widgets.forEach((itercell, idx) => {
|
|
184
|
-
|
|
185
|
-
|
|
183
|
+
cell_metadata_by_id[itercell.model.id] = {
|
|
184
|
+
index: idx,
|
|
185
|
+
content: itercell.model.value.text,
|
|
186
|
+
type: itercell.model.type,
|
|
187
|
+
};
|
|
186
188
|
if (itercell.model.id === cell.id) {
|
|
187
189
|
itercell.node.classList.remove(readyClass);
|
|
188
190
|
itercell.node.classList.remove(readyMakingInputClass);
|
|
@@ -191,8 +193,7 @@ const connectToComm = (session, notebook) => {
|
|
|
191
193
|
const payload = {
|
|
192
194
|
type: 'compute_exec_schedule',
|
|
193
195
|
executed_cell_id: cell.id,
|
|
194
|
-
|
|
195
|
-
content_by_cell_id: content_by_cell_id,
|
|
196
|
+
cell_metadata_by_id,
|
|
196
197
|
};
|
|
197
198
|
comm.send(payload).done.then(() => {
|
|
198
199
|
if (cellPendingExecution !== null) {
|
package/package.json
CHANGED