@fails-components/jupyter-applet-view 0.0.2 → 0.0.4
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/avoutputarea.js +3 -0
- package/package.json +5 -5
- package/src/avoutputarea.ts +3 -0
package/lib/avoutputarea.js
CHANGED
|
@@ -171,6 +171,9 @@ export class AppletViewOutputArea extends AccordionPanel {
|
|
|
171
171
|
}
|
|
172
172
|
const app = this.widgets[appIndex];
|
|
173
173
|
const clone = this.cloneCell(cell, cellid);
|
|
174
|
+
clone.node.addEventListener('contextmenu', e => {
|
|
175
|
+
e.preventDefault();
|
|
176
|
+
});
|
|
174
177
|
this.addToObserver(appIndex, clone);
|
|
175
178
|
app.addWidget(clone);
|
|
176
179
|
// this.informResize(this._applets[appIndex]) // not neccessary
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fails-components/jupyter-applet-view",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "A collection of extensions, that let's you select cell and switch to an applet mode, where only the selected cells are visible. This is used for fails-components to have jupyter applets in interactive teaching. ",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"watch:labextension": "jupyter labextension watch ."
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@fails-components/jupyter-interceptor": "^0.0.
|
|
62
|
-
"@fails-components/jupyter-launcher": "^0.0.
|
|
61
|
+
"@fails-components/jupyter-interceptor": "^0.0.4",
|
|
62
|
+
"@fails-components/jupyter-launcher": "^0.0.4",
|
|
63
63
|
"@jupyter-notebook/application": "^7.4.3",
|
|
64
64
|
"@jupyter-widgets/jupyterlab-manager": "^5.0.15",
|
|
65
65
|
"@jupyterlab/application": "^4.4.3",
|
|
@@ -125,12 +125,12 @@
|
|
|
125
125
|
"sharedPackages": {
|
|
126
126
|
"@fails-components/jupyter-launcher": {
|
|
127
127
|
"singleton": true,
|
|
128
|
-
"requiredVersion": "^0.0.
|
|
128
|
+
"requiredVersion": "^0.0.4",
|
|
129
129
|
"import": false
|
|
130
130
|
},
|
|
131
131
|
"@fails-components/jupyter-interceptor": {
|
|
132
132
|
"singleton": true,
|
|
133
|
-
"requiredVersion": "^0.0.
|
|
133
|
+
"requiredVersion": "^0.0.4",
|
|
134
134
|
"import": false
|
|
135
135
|
}
|
|
136
136
|
}
|
package/src/avoutputarea.ts
CHANGED
|
@@ -205,6 +205,9 @@ export class AppletViewOutputArea extends AccordionPanel {
|
|
|
205
205
|
}
|
|
206
206
|
const app = this.widgets[appIndex] as Panel;
|
|
207
207
|
const clone = this.cloneCell(cell, cellid);
|
|
208
|
+
clone.node.addEventListener('contextmenu', e => {
|
|
209
|
+
e.preventDefault();
|
|
210
|
+
});
|
|
208
211
|
this.addToObserver(appIndex, clone);
|
|
209
212
|
app.addWidget(clone);
|
|
210
213
|
|