@difizen/libro-jupyter 0.3.54 → 0.3.55

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.
@@ -1 +1 @@
1
- {"version":3,"file":"jupyter-code-cell-view.d.ts","sourceRoot":"","sources":["../../src/cell/jupyter-code-cell-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EACV,qBAAqB,EACrB,kBAAkB,EAElB,eAAe,EAEhB,MAAM,4BAA4B,CAAC;AAUpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,qBAEa,mBAAoB,SAAQ,iBAAiB;IACxD,UAAkB,OAAO,EAAE,gBAAgB,CAAC;IAE5C,IAAa,MAAM,IAGQ,gBAAgB,CAD1C;IACD,IAAa,MAAM,CAAC,KAAK,EAAE,gBAAgB,EAG1C;IAGO,KAAK,EAAE,oBAAoB,CAAC;IAE3B,cAAc,aAQrB;cAEiB,eAAe,IAAI,qBAAqB;IAU5C,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAmE3C,eAAe,EAAE,eAAe,CAqB9B;IAEF,kBAAkB,EAAE,kBAAkB,CA8BpC;IAEa,GAAG;CA4FnB"}
1
+ {"version":3,"file":"jupyter-code-cell-view.d.ts","sourceRoot":"","sources":["../../src/cell/jupyter-code-cell-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EACV,qBAAqB,EACrB,kBAAkB,EAElB,eAAe,EAEhB,MAAM,4BAA4B,CAAC;AAUpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,qBAEa,mBAAoB,SAAQ,iBAAiB;IACxD,UAAkB,OAAO,EAAE,gBAAgB,CAAC;IAE5C,IAAa,MAAM,IAGQ,gBAAgB,CAD1C;IACD,IAAa,MAAM,CAAC,KAAK,EAAE,gBAAgB,EAG1C;IAGO,KAAK,EAAE,oBAAoB,CAAC;IAE3B,cAAc,aAQrB;cAEiB,eAAe,IAAI,qBAAqB;IAU5C,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAmE3C,eAAe,EAAE,eAAe,CAqB9B;IAEF,kBAAkB,EAAE,kBAAkB,CA8BpC;IAEa,GAAG;CA0FnB"}
@@ -237,7 +237,6 @@ export var JupyterCodeCellView = (_dec = transient(), _dec2 = view('jupyter-code
237
237
  key: "run",
238
238
  value: function () {
239
239
  var _run = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
240
- var _this3 = this;
241
240
  var libroModel, kernelConnection, cellContent, cellModel, future, startTimeStr, msgPromise, endTimeStr;
242
241
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
243
242
  while (1) switch (_context4.prev = _context4.next) {
@@ -266,8 +265,7 @@ export var JupyterCodeCellView = (_dec = transient(), _dec2 = view('jupyter-code
266
265
  cellModel.metadata.execution = {};
267
266
  }
268
267
  cellModel.metadata.execution['libro_execution_msg_id'] = future.msg.header.msg_id;
269
- // 触发保存
270
- this.parent.model.saveNotebookContent();
268
+ cellModel.metadata = _objectSpread({}, cellModel.metadata);
271
269
 
272
270
  // Handle iopub messages
273
271
  future.onIOPub = function (msg) {
@@ -278,8 +276,7 @@ export var JupyterCodeCellView = (_dec = transient(), _dec2 = view('jupyter-code
278
276
  to_execute: new Date().toISOString(),
279
277
  libro_execution_msg_id: future.msg.header.msg_id
280
278
  };
281
- // 触发保存
282
- _this3.parent.model.saveNotebookContent();
279
+ cellModel.metadata = _objectSpread({}, cellModel.metadata);
283
280
  cellModel.kernelExecuting = true;
284
281
  startTimeStr = msg.header.date;
285
282
  var meta = cellModel.metadata.execution;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-jupyter",
3
- "version": "0.3.54",
3
+ "version": "0.3.55",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro"
@@ -37,22 +37,22 @@
37
37
  "dependencies": {
38
38
  "@ant-design/colors": "^7.0.0",
39
39
  "@ant-design/icons": "^5.1.0",
40
- "@difizen/libro-code-cell": "^0.3.54",
41
- "@difizen/libro-code-editor": "^0.3.54",
42
- "@difizen/libro-codemirror": "^0.3.54",
43
- "@difizen/libro-cofine-editor": "^0.3.54",
44
- "@difizen/libro-common": "^0.3.54",
45
- "@difizen/libro-core": "^0.3.54",
46
- "@difizen/libro-kernel": "^0.3.54",
47
- "@difizen/libro-l10n": "^0.3.54",
48
- "@difizen/libro-language-client": "^0.3.54",
49
- "@difizen/libro-lsp": "^0.3.54",
50
- "@difizen/libro-markdown-cell": "^0.3.54",
51
- "@difizen/libro-output": "^0.3.54",
52
- "@difizen/libro-raw-cell": "^0.3.54",
53
- "@difizen/libro-rendermime": "^0.3.54",
54
- "@difizen/libro-search": "^0.3.54",
55
- "@difizen/libro-search-code-cell": "^0.3.54",
40
+ "@difizen/libro-code-cell": "^0.3.55",
41
+ "@difizen/libro-code-editor": "^0.3.55",
42
+ "@difizen/libro-codemirror": "^0.3.55",
43
+ "@difizen/libro-cofine-editor": "^0.3.55",
44
+ "@difizen/libro-common": "^0.3.55",
45
+ "@difizen/libro-core": "^0.3.55",
46
+ "@difizen/libro-kernel": "^0.3.55",
47
+ "@difizen/libro-l10n": "^0.3.55",
48
+ "@difizen/libro-language-client": "^0.3.55",
49
+ "@difizen/libro-lsp": "^0.3.55",
50
+ "@difizen/libro-markdown-cell": "^0.3.55",
51
+ "@difizen/libro-output": "^0.3.55",
52
+ "@difizen/libro-raw-cell": "^0.3.55",
53
+ "@difizen/libro-rendermime": "^0.3.55",
54
+ "@difizen/libro-search": "^0.3.55",
55
+ "@difizen/libro-search-code-cell": "^0.3.55",
56
56
  "@difizen/mana-app": "latest",
57
57
  "@difizen/mana-l10n": "latest",
58
58
  "classnames": "^2.3.2",
@@ -210,8 +210,7 @@ export class JupyterCodeCellView extends LibroCodeCellView {
210
210
  }
211
211
  (cellModel.metadata.execution as any)['libro_execution_msg_id'] =
212
212
  future.msg.header.msg_id;
213
- // 触发保存
214
- this.parent.model.saveNotebookContent();
213
+ cellModel.metadata = { ...cellModel.metadata };
215
214
 
216
215
  // Handle iopub messages
217
216
  future.onIOPub = (msg: any) => {
@@ -222,8 +221,7 @@ export class JupyterCodeCellView extends LibroCodeCellView {
222
221
  to_execute: new Date().toISOString(),
223
222
  libro_execution_msg_id: future.msg.header.msg_id,
224
223
  } as ExecutionMeta;
225
- // 触发保存
226
- this.parent.model.saveNotebookContent();
224
+ cellModel.metadata = { ...cellModel.metadata };
227
225
  cellModel.kernelExecuting = true;
228
226
  startTimeStr = msg.header.date as string;
229
227
  const meta = cellModel.metadata.execution as ExecutionMeta;