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.
Files changed (2) hide show
  1. package/lib/index.js +7 -6
  2. 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 order_index_by_cell_id = {};
182
- const content_by_cell_id = {};
181
+ const cell_metadata_by_id = {};
183
182
  notebook.widgets.forEach((itercell, idx) => {
184
- order_index_by_cell_id[itercell.model.id] = idx;
185
- content_by_cell_id[itercell.model.id] = itercell.model.value.text;
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
- order_index_by_cell_id: order_index_by_cell_id,
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
@@ -65,5 +65,5 @@
65
65
  "extension": true,
66
66
  "outputDir": "../../core/ipyflow/resources/labextension/"
67
67
  },
68
- "version": "0.0.103"
68
+ "version": "0.0.104"
69
69
  }