@jupyter-notebook/notebook-extension 7.0.0-alpha.11 → 7.0.0-alpha.13

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 CHANGED
@@ -90,23 +90,27 @@ const kernelLogo = {
90
90
  const { serviceManager } = app;
91
91
  const node = document.createElement('div');
92
92
  const img = document.createElement('img');
93
- node.appendChild(img);
94
93
  const onChange = async () => {
95
94
  var _a, _b, _c, _d, _e;
96
95
  const current = shell.currentWidget;
97
96
  if (!(current instanceof NotebookPanel)) {
98
97
  return;
99
98
  }
99
+ if (!node.hasChildNodes()) {
100
+ node.appendChild(img);
101
+ }
100
102
  await current.sessionContext.ready;
101
103
  current.sessionContext.kernelChanged.disconnect(onChange);
102
104
  current.sessionContext.kernelChanged.connect(onChange);
103
105
  const name = (_c = (_b = (_a = current.sessionContext.session) === null || _a === void 0 ? void 0 : _a.kernel) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : '';
104
106
  const spec = (_e = (_d = serviceManager.kernelspecs) === null || _d === void 0 ? void 0 : _d.specs) === null || _e === void 0 ? void 0 : _e.kernelspecs[name];
105
107
  if (!spec) {
108
+ node.childNodes[0].remove();
106
109
  return;
107
110
  }
108
111
  const kernelIconUrl = spec.resources['logo-64x64'];
109
112
  if (!kernelIconUrl) {
113
+ node.childNodes[0].remove();
110
114
  return;
111
115
  }
112
116
  img.src = kernelIconUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyter-notebook/notebook-extension",
3
- "version": "7.0.0-alpha.11",
3
+ "version": "7.0.0-alpha.13",
4
4
  "description": "Jupyter Notebook - Notebook Extension",
5
5
  "homepage": "https://github.com/jupyter/notebook",
6
6
  "bugs": {
@@ -39,16 +39,16 @@
39
39
  "watch": "tsc -b --watch"
40
40
  },
41
41
  "dependencies": {
42
- "@jupyter-notebook/application": "^7.0.0-alpha.11",
43
- "@jupyterlab/application": "^4.0.0-alpha.17",
44
- "@jupyterlab/apputils": "^4.0.0-alpha.17",
45
- "@jupyterlab/cells": "^4.0.0-alpha.17",
46
- "@jupyterlab/docmanager": "^4.0.0-alpha.17",
47
- "@jupyterlab/notebook": "^4.0.0-alpha.17",
48
- "@jupyterlab/settingregistry": "^4.0.0-alpha.17",
49
- "@jupyterlab/translation": "^4.0.0-alpha.17",
50
- "@lumino/polling": "^2.0.0-alpha.7",
51
- "@lumino/widgets": "^2.0.0-alpha.7"
42
+ "@jupyter-notebook/application": "^7.0.0-alpha.13",
43
+ "@jupyterlab/application": "^4.0.0-alpha.19",
44
+ "@jupyterlab/apputils": "^4.0.0-alpha.19",
45
+ "@jupyterlab/cells": "^4.0.0-alpha.19",
46
+ "@jupyterlab/docmanager": "^4.0.0-alpha.19",
47
+ "@jupyterlab/notebook": "^4.0.0-alpha.19",
48
+ "@jupyterlab/settingregistry": "^4.0.0-alpha.19",
49
+ "@jupyterlab/translation": "^4.0.0-alpha.19",
50
+ "@lumino/polling": "^2.0.0-beta.1",
51
+ "@lumino/widgets": "^2.0.0-beta.1"
52
52
  },
53
53
  "devDependencies": {
54
54
  "rimraf": "^3.0.2",
package/style/base.css CHANGED
@@ -132,6 +132,10 @@ body[data-format='mobile'] .jp-Notebook > *:first-child {
132
132
  margin-top: 0;
133
133
  }
134
134
 
135
+ body[data-format='mobile'] .jp-ToolbarButton .jp-DebuggerBugButton {
136
+ display: none;
137
+ }
138
+
135
139
  /* Virtual Notebook fixes */
136
140
 
137
141
  body[data-notebook='notebooks'] .jp-WindowedPanel-window {