jupyterlab-cell-queue 0.1.0__py3-none-any.whl
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.
- jupyterlab_cell_queue/__init__.py +7 -0
- jupyterlab_cell_queue/labextension/package.json +59 -0
- jupyterlab_cell_queue/labextension/static/243.468a3104db41639fc628.js +1 -0
- jupyterlab_cell_queue/labextension/static/665.f5002b264ff0d2108842.js +1 -0
- jupyterlab_cell_queue/labextension/static/remoteEntry.9dda16c9985f59d791fc.js +1 -0
- jupyterlab_cell_queue/labextension/static/style.js +4 -0
- jupyterlab_cell_queue/labextension/static/third-party-licenses.json +16 -0
- jupyterlab_cell_queue-0.1.0.data/data/share/jupyter/labextensions/jupyterlab-cell-queue/install.json +5 -0
- jupyterlab_cell_queue-0.1.0.data/data/share/jupyter/labextensions/jupyterlab-cell-queue/package.json +59 -0
- jupyterlab_cell_queue-0.1.0.data/data/share/jupyter/labextensions/jupyterlab-cell-queue/static/243.468a3104db41639fc628.js +1 -0
- jupyterlab_cell_queue-0.1.0.data/data/share/jupyter/labextensions/jupyterlab-cell-queue/static/665.f5002b264ff0d2108842.js +1 -0
- jupyterlab_cell_queue-0.1.0.data/data/share/jupyter/labextensions/jupyterlab-cell-queue/static/remoteEntry.9dda16c9985f59d791fc.js +1 -0
- jupyterlab_cell_queue-0.1.0.data/data/share/jupyter/labextensions/jupyterlab-cell-queue/static/style.js +4 -0
- jupyterlab_cell_queue-0.1.0.data/data/share/jupyter/labextensions/jupyterlab-cell-queue/static/third-party-licenses.json +16 -0
- jupyterlab_cell_queue-0.1.0.dist-info/METADATA +182 -0
- jupyterlab_cell_queue-0.1.0.dist-info/RECORD +18 -0
- jupyterlab_cell_queue-0.1.0.dist-info/WHEEL +4 -0
- jupyterlab_cell_queue-0.1.0.dist-info/licenses/LICENSE +29 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jupyterlab-cell-queue",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "See, remove and stop the cells waiting to run in a JupyterLab notebook.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"jupyter",
|
|
7
|
+
"jupyterlab",
|
|
8
|
+
"jupyterlab-extension"
|
|
9
|
+
],
|
|
10
|
+
"license": "BSD-3-Clause",
|
|
11
|
+
"author": "quietuseful",
|
|
12
|
+
"homepage": "https://github.com/quietuseful/jupyterlab-cell-queue",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/quietuseful/jupyterlab-cell-queue/issues"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/quietuseful/jupyterlab-cell-queue.git"
|
|
19
|
+
},
|
|
20
|
+
"type": "module",
|
|
21
|
+
"main": "src/index.js",
|
|
22
|
+
"style": "style/index.css",
|
|
23
|
+
"files": [
|
|
24
|
+
"src/**/*.js",
|
|
25
|
+
"style/**/*.css",
|
|
26
|
+
"schema/*.json",
|
|
27
|
+
"LICENSE",
|
|
28
|
+
"README.md"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"test": "node --test test/*.test.mjs",
|
|
32
|
+
"build": "jupyter labextension build ."
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@jupyterlab/application": "^4.4.4",
|
|
36
|
+
"@jupyterlab/apputils": "^4.5.4",
|
|
37
|
+
"@jupyterlab/notebook": "^4.4.4",
|
|
38
|
+
"@jupyterlab/ui-components": "^4.4.4",
|
|
39
|
+
"@lumino/widgets": "^2.3.1"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@jupyterlab/builder": "4.4.4"
|
|
43
|
+
},
|
|
44
|
+
"jupyterlab": {
|
|
45
|
+
"extension": true,
|
|
46
|
+
"outputDir": "jupyterlab_cell_queue/labextension",
|
|
47
|
+
"disabledExtensions": [
|
|
48
|
+
"@jupyterlab/notebook-extension:cell-executor"
|
|
49
|
+
],
|
|
50
|
+
"_build": {
|
|
51
|
+
"load": "static/remoteEntry.9dda16c9985f59d791fc.js",
|
|
52
|
+
"extension": "./extension",
|
|
53
|
+
"style": "./style"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"overrides": {
|
|
57
|
+
"webpack": "5.94.0"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkjupyterlab_cell_queue=self.webpackChunkjupyterlab_cell_queue||[]).push([[243],{243:(e,t,s)=>{s.r(t),s.d(t,{default:()=>b});var n=s(904),i=s(805),o=s(341),l=s(249);const r=new Set(["restarting","autorestarting","dead","terminating"]);function c(e){const t=e.model;return t.sharedModel&&"function"==typeof t.sharedModel.getId?t.sharedModel.getId():t.id}function u(e){const t=e.model;return t.sharedModel&&"function"==typeof t.sharedModel.getSource?t.sharedModel.getSource():t.value??""}function a(e,t){const s=e.model;let n;return"function"==typeof s.getMetadata?n=s.getMetadata("tags"):s.metadata&&(n=s.metadata.tags),Array.isArray(n)&&n.includes(t)}class d{constructor(e,t){this.owner=e,this.session=t,this.current=null,this.waiting=[],this.pumping=!1,this.slots=[],this._connect()}_connect(){const e=this.session,t=(e,t)=>{e&&"function"==typeof e.connect&&(e.connect(t,this),this.slots.push([e,t]))};t(e.statusChanged,(e,t)=>{r.has(t)&&this.owner._drop(this,"kernel-"+t)}),t(e.kernelChanged,(e,t)=>{t&&null!=t.oldValue&&this.owner._drop(this,"kernel-changed")}),t(e.disposed,()=>{this.owner._drop(this,"session-disposed"),this.owner._forget(this)})}disconnect(){for(const[e,t]of this.slots)e.disconnect(t,this);this.slots=[]}get idle(){return null===this.current&&0===this.waiting.length&&!this.pumping}}var h=s(256);function p(e,t=60){const s=("string"==typeof e?e:"").split(/\r?\n/).map(e=>e.trim()).find(e=>e.length>0);if(!s)return"(empty cell)";const n=Array.from(s);return n.length>t?n.slice(0,t-1).join("")+"…":s}function m(e,t){const s=t>=0?`Cell ${t+1}`:"Cell (moved or hidden)",n="running"===e.state?"running":"waiting",i=e.edited?", edited since queued; will run the current code":"";return{where:s,state:n,text:p(e.source),label:`${s}, ${n}${i}: ${p(e.source)}`}}class g extends h.Widget{constructor({queue:e,tracker:t,activateWidget:s}){super(),this.queue=e,this.tracker=t,this.activateWidget=s||(e=>e.activate()),this.id="jp-cell-queue-panel",this.addClass("jp-CellQueue"),this.title.caption="Cell Queue";const n=document.createElement("div");n.className="jp-CellQueue-header";const i=document.createElement("h2");i.className="jp-CellQueue-title",i.textContent="Cell Queue",this.status=document.createElement("p"),this.status.className="jp-CellQueue-status",this.status.setAttribute("role","status"),this.status.setAttribute("aria-live","polite"),this.stopButton=document.createElement("button"),this.stopButton.type="button",this.stopButton.className="jp-CellQueue-stop jp-mod-styled",this.stopButton.textContent="Stop after current cell",this.stopButton.title="Let the running cell finish and remove all waiting cells",this.stopButton.addEventListener("click",()=>{const e=this._session();e&&this.queue.stopAfterCurrent(e)}),n.append(i,this.status,this.stopButton),this.list=document.createElement("ol"),this.list.className="jp-CellQueue-list",this.list.setAttribute("aria-label","Queued cells"),this.note=document.createElement("p"),this.note.className="jp-CellQueue-note",this.note.textContent="Waiting cells are held in this browser tab and sent one at a time. Closing the tab drops them.",this.node.append(n,this.list,this.note),this._unsubscribe=e.subscribe(()=>this._scheduleRender()),t.currentChanged.connect(this._scheduleRender,this),this._pending=!1,this.render()}dispose(){this.isDisposed||(this._unsubscribe(),this.tracker.currentChanged.disconnect(this._scheduleRender,this),super.dispose())}_session(){const e=this.tracker.currentWidget;return e?e.sessionContext:null}_scheduleRender(){this._pending||this.isDisposed||(this._pending=!0,requestAnimationFrame(()=>{this._pending=!1,this.isDisposed||this.render()}))}render(){const e=this.tracker.currentWidget,t=e?e.sessionContext:null,s=t?this.queue.entries(t):[];this.status.textContent=e?function(e){const t=e.filter(e=>"running"===e.state).length,s=e.length-t;if(0===e.length)return"No cells queued.";const n=[];return t&&n.push("1 running"),n.push(1===s?"1 waiting":`${s} waiting`),n.join(", ")+"."}(s):"Open a notebook to see its queue.",this.stopButton.disabled=!s.some(e=>"waiting"===e.state),this.list.replaceChildren();for(const n of s){const s=e?e.content.widgets.indexOf(n.cell):-1,i=m(n,s),o=document.createElement("li");o.className="jp-CellQueue-item",o.dataset.state=n.state,n.edited&&(o.dataset.edited="true");const l=document.createElement("button");l.type="button",l.className="jp-CellQueue-jump",l.setAttribute("aria-label","Go to "+i.label),l.title="Go to this cell";const r=document.createElement("span");r.className="jp-CellQueue-where",r.textContent=`${i.where} · ${i.state}${n.edited?" · edited":""}`;const c=document.createElement("code");if(c.className="jp-CellQueue-code",c.textContent=i.text,l.append(r,c),l.addEventListener("click",()=>this._jump(n.cell)),o.append(l),"waiting"===n.state){const e=document.createElement("button");e.type="button",e.className="jp-CellQueue-remove",e.textContent="Remove",e.setAttribute("aria-label","Remove "+i.where+" from the queue"),e.addEventListener("click",()=>{t&&this.queue.remove(t,n.id)}),o.append(e)}this.list.append(o)}}_jump(e){const t=this.tracker.currentWidget;if(!t||e.isDisposed)return;const s=t.content,n=s.widgets.indexOf(e);n<0||(s.activeCellIndex=n,s.mode="command",this.activateWidget(t),s.scrollToCell(e,"center"))}}const f=new l.LabIcon({name:"jupyterlab-cell-queue:icon",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><g class="jp-icon3" fill="#616161"><rect x="3" y="4" width="4" height="4" rx="1"/><rect x="9" y="5" width="12" height="2" rx="1"/><rect x="3" y="10" width="4" height="4" rx="1"/><rect x="9" y="11" width="12" height="2" rx="1"/><rect x="3" y="16" width="4" height="4" rx="1"/><rect x="9" y="17" width="12" height="2" rx="1"/></g></svg>'}),_=new class{constructor({runCell:e,onChange:t}={}){if("function"!=typeof e)throw new TypeError("CellQueue needs a runCell function");this._runCell=e,this._listeners=new Set,t&&this._listeners.add(t),this._queues=new Map,this._nextId=1,this._relocate=null}subscribe(e){return this._listeners.add(e),()=>this._listeners.delete(e)}setRelocator(e){this._relocate="function"==typeof e?e:null}run(e){const{cell:t,sessionContext:s}=e;if(!s||!t||!t.model||"code"!==t.model.type)return this._runCell(e);let n=this._queues.get(s);return n||(n=new d(this,s),this._queues.set(s,n)),new Promise((s,i)=>{const o={id:this._nextId++,options:e,cell:t,cellId:c(t),source:u(t),queuedAt:Date.now(),resolve:s,reject:i};n.waiting.push(o),this._setRunning(t),this._emit(),this._schedule(n)})}entries(e){const t=this._queues.get(e);if(!t)return[];const s=[],n=(e,t)=>{const n=e.cell.isDisposed?e.source:u(e.cell);s.push({id:e.id,cell:e.cell,cellId:e.cellId,state:t,source:n,edited:"waiting"===t&&n!==e.source})};t.current&&n(t.current,"running");for(const e of t.waiting)n(e,"waiting");return s}waitingCount(e){const t=this._queues.get(e);return t?t.waiting.length:0}remove(e,t){const s=this._queues.get(e);if(!s)return!1;const n=s.waiting.findIndex(e=>e.id===t);if(-1===n)return!1;const[i]=s.waiting.splice(n,1);return this._settleDropped(i),this._emit(),this._maybeForget(s),!0}removeCell(e,t){const s=this._queues.get(e);if(!s)return 0;const n=[],i=[];for(const e of s.waiting)(e.cell===t||e.cell.model===t.model?i:n).push(e);s.waiting=n;for(const e of i)this._settleDropped(e);return i.length&&(this._emit(),this._maybeForget(s)),i.length}stopAfterCurrent(e){const t=this._queues.get(e);return t?this._drop(t,"stop"):0}prune(e){const t=this._queues.get(e);if(!t)return 0;const s=[];let n=0;for(const e of t.waiting)this._revive(e)?s.push(e):(n++,e.resolve(!1));return t.waiting=s,n&&(this._emit(),this._maybeForget(t)),n}_schedule(e){e.pumping||(e.pumping=!0,Promise.resolve().then(()=>this._pump(e)))}async _pump(e){try{for(;e.waiting.length>0;){const t=e.waiting.shift();if(!this._revive(t)){t.resolve(!1),this._emit();continue}let s;e.current=t,this._emit();let n=null;try{s=await this._runCell(t.options)}catch(e){n=e??new Error("Cell execution failed")}e.current=null,n?(a(t.cell,"raises-exception")||this._drop(e,"error"),t.reject(n)):(!1!==s||t.cell.isDisposed||this._drop(e,"not-run"),t.resolve(s)),this._emit()}}finally{e.pumping=!1,this._maybeForget(e)}}_revive(e){const t=e.options.notebook;if(!e.cell.isDisposed&&function(e,t){const s=e&&e.cells;if(!s)return!0;for(const e of s)if(e===t)return!0;return!1}(t,e.cell.model))return!0;if(this._relocate){let s=null;try{s=this._relocate(t,e.cellId)}catch(e){s=null}if(s&&!s.isDisposed&&s.model&&"code"===s.model.type)return e.cell=s,e.options={...e.options,cell:s},this._setRunning(s),!0}return!1}_drop(e,t){if(0===e.waiting.length)return 0;const s=e.waiting;e.waiting=[];for(const e of s)this._settleDropped(e);return this._emit(),s.length}_settleDropped(e){this._setIdleIfUnused(e.cell),e.resolve(!1)}_isReferenced(e){for(const t of this._queues.values()){if(t.current&&t.current.cell.model===e.model)return!0;for(const s of t.waiting)if(s.cell.model===e.model)return!0}return!1}_setRunning(e){e.isDisposed||(e.model.executionState="running")}_setIdleIfUnused(e){e.isDisposed||this._isReferenced(e)||(e.model.executionState="idle")}_maybeForget(e){e.idle&&this._queues.get(e.session)===e&&(e.disconnect(),this._queues.delete(e.session))}_forget(e){e.disconnect(),this._queues.get(e.session)===e&&this._queues.delete(e.session)}_emit(){for(const e of this._listeners)try{e()}catch(e){console.error("jupyterlab-cell-queue: listener failed",e)}}}({runCell:o.runCell}),w={show:"cell-queue:show",stop:"cell-queue:stop-after-current",removeActive:"cell-queue:remove-active-cell"},C={id:"jupyterlab-cell-queue:executor",description:"Holds queued code cells in the browser and sends them one at a time.",autoStart:!0,provides:o.INotebookCellExecutor,activate:()=>Object.freeze({runCell:e=>_.run(e)})},v={id:"jupyterlab-cell-queue:panel",description:"Side panel and commands for the cell queue.",autoStart:!0,requires:[o.INotebookTracker],optional:[i.ICommandPalette,n.ILayoutRestorer],activate:(e,t,s,n)=>{_.setRelocator((e,s)=>{let n=null;return t.forEach(t=>{n||t.content.model!==e||(n=t.content.widgets.find(e=>!e.isDisposed&&e.model.sharedModel.getId()===s)??null)}),n}),t.widgetAdded.connect((e,t)=>{const s=()=>{const e=t.content.model;e&&e.cells.changed.connect(()=>{setTimeout(()=>_.prune(t.sessionContext),0)})};t.content.model?s():t.content.modelChanged.connect(s)});const i=new g({queue:_,tracker:t,activateWidget:t=>e.shell.activateById(t.id)});i.title.icon=f,e.shell.add(i,"right",{rank:900}),n&&n.add(i,i.id);const o=()=>t.currentWidget;if(e.commands.addCommand(w.show,{label:"Show Cell Queue",caption:"Show the cells waiting to run in this notebook",execute:()=>e.shell.activateById(i.id)}),e.commands.addCommand(w.stop,{label:"Stop After Current Cell",caption:"Let the running cell finish and remove all waiting cells",isEnabled:()=>!!o()&&_.waitingCount(o().sessionContext)>0,execute:()=>{const e=o();return e?_.stopAfterCurrent(e.sessionContext):0}}),e.commands.addCommand(w.removeActive,{label:"Remove Cell From Queue",caption:"Remove the active cell from the queue if it is still waiting",isEnabled:()=>{const e=o(),t=e&&e.content.activeCell;return!!t&&_.entries(e.sessionContext).some(e=>"waiting"===e.state&&e.cell===t)},execute:()=>{const e=o(),t=e&&e.content.activeCell;return t?_.removeCell(e.sessionContext,t):0}}),_.subscribe(()=>{e.commands.notifyCommandChanged(w.stop),e.commands.notifyCommandChanged(w.removeActive)}),s){const e="Notebook Operations";for(const t of Object.values(w))s.addItem({command:t,category:e})}e.contextMenu.addItem({command:w.removeActive,selector:".jp-Notebook .jp-CodeCell",rank:12}),e.contextMenu.addItem({command:w.stop,selector:".jp-Notebook",rank:12})}},b=[C,v]}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkjupyterlab_cell_queue=self.webpackChunkjupyterlab_cell_queue||[]).push([[665],{646:(e,n,t)=>{t.d(n,{A:()=>i});var r=t(601),o=t.n(r),a=t(314),l=t.n(a)()(o());l.push([e.id,"/* Copyright (c) 2026 jupyterlab-cell-queue contributors. BSD-3-Clause. */\n.jp-CellQueue {\n display: flex;\n flex-direction: column;\n padding: 8px;\n overflow: auto;\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n}\n.jp-CellQueue-title {\n margin: 0 0 4px;\n font-size: var(--jp-ui-font-size2);\n font-weight: 600;\n}\n.jp-CellQueue-status { margin: 0 0 8px; }\n.jp-CellQueue-stop { align-self: flex-start; margin-bottom: 8px; }\n.jp-CellQueue-list { list-style: none; margin: 0; padding: 0; }\n.jp-CellQueue-item {\n display: flex;\n gap: 4px;\n align-items: stretch;\n margin-bottom: 4px;\n border-left: 3px solid var(--jp-border-color1);\n}\n.jp-CellQueue-item[data-state='running'] { border-left-color: var(--jp-brand-color1); }\n.jp-CellQueue-item[data-edited='true'] { border-left-color: var(--jp-warn-color1); }\n.jp-CellQueue-jump {\n flex: 1 1 auto;\n min-width: 0;\n display: flex;\n flex-direction: column;\n text-align: left;\n padding: 4px 6px;\n border: 1px solid transparent;\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n.jp-CellQueue-jump:hover { background: var(--jp-layout-color2); }\n.jp-CellQueue-where { color: var(--jp-ui-font-color1); font-weight: 600; }\n.jp-CellQueue-code {\n font-family: var(--jp-code-font-family);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.jp-CellQueue-remove {\n flex: 0 0 auto;\n align-self: center;\n padding: 2px 8px;\n border: 1px solid var(--jp-border-color1);\n border-radius: 2px;\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n font: inherit;\n cursor: pointer;\n}\n.jp-CellQueue-remove:hover { background: var(--jp-layout-color2); }\n.jp-CellQueue button:focus-visible {\n outline: 2px solid var(--jp-brand-color1);\n outline-offset: 1px;\n}\n.jp-CellQueue-note { margin-top: 12px; color: var(--jp-ui-font-color2); }\n",""]);const i=l},314:e=>{e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t="",r=void 0!==n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),r&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),r&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t}).join("")},n.i=function(e,t,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var l={};if(r)for(var i=0;i<this.length;i++){var u=this[i][0];null!=u&&(l[u]=!0)}for(var c=0;c<e.length;c++){var p=[].concat(e[c]);r&&l[p[0]]||(void 0!==a&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=a),t&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=t):p[2]=t),o&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=o):p[4]="".concat(o)),n.push(p))}},n}},601:e=>{e.exports=function(e){return e[1]}},665:(e,n,t)=>{t.r(n),t.d(n,{default:()=>g});var r=t(72),o=t.n(r),a=t(825),l=t.n(a),i=t(659),u=t.n(i),c=t(56),p=t.n(c),s=t(540),d=t.n(s),f=t(113),v=t.n(f),m=t(646),h={};h.styleTagTransform=v(),h.setAttributes=p(),h.insert=u().bind(null,"head"),h.domAPI=l(),h.insertStyleElement=d(),o()(m.A,h);const g=m.A&&m.A.locals?m.A.locals:void 0},72:e=>{var n=[];function t(e){for(var t=-1,r=0;r<n.length;r++)if(n[r].identifier===e){t=r;break}return t}function r(e,r){for(var a={},l=[],i=0;i<e.length;i++){var u=e[i],c=r.base?u[0]+r.base:u[0],p=a[c]||0,s="".concat(c," ").concat(p);a[c]=p+1;var d=t(s),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)n[d].references++,n[d].updater(f);else{var v=o(f,r);r.byIndex=i,n.splice(i,0,{identifier:s,updater:v,references:1})}l.push(s)}return l}function o(e,n){var t=n.domAPI(n);return t.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;t.update(e=n)}else t.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var l=0;l<a.length;l++){var i=t(a[l]);n[i].references--}for(var u=r(e,o),c=0;c<a.length;c++){var p=t(a[c]);0===n[p].references&&(n[p].updater(),n.splice(p,1))}a=u}}},659:e=>{var n={};e.exports=function(e,t){var r=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}},540:e=>{e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},56:(e,n,t)=>{e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(t){!function(e,n,t){var r="";t.supports&&(r+="@supports (".concat(t.supports,") {")),t.media&&(r+="@media ".concat(t.media," {"));var o=void 0!==t.layer;o&&(r+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),r+=t.css,o&&(r+="}"),t.media&&(r+="}"),t.supports&&(r+="}");var a=t.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),n.styleTagTransform(r,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},113:e=>{e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _JUPYTERLAB;(()=>{"use strict";var e,r,t,n,o,a,i,u,l,f,s,p,c,d,h,v,g,b,m,y={618:(e,r,t)=>{var n={"./index":()=>t.e(243).then(()=>()=>t(243)),"./extension":()=>t.e(243).then(()=>()=>t(243)),"./style":()=>t.e(665).then(()=>()=>t(665))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then(()=>{throw new Error('Module "'+e+'" does not exist in container.')}),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},w={};function j(e){var r=w[e];if(void 0!==r)return r.exports;var t=w[e]={id:e,exports:{}};return y[e](t,t.exports,j),t.exports}j.m=y,j.c=w,j.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return j.d(r,{a:r}),r},j.d=(e,r)=>{for(var t in r)j.o(r,t)&&!j.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},j.f={},j.e=e=>Promise.all(Object.keys(j.f).reduce((r,t)=>(j.f[t](e,r),r),[])),j.u=e=>e+"."+{243:"468a3104db41639fc628",665:"f5002b264ff0d2108842"}[e]+".js?v="+{243:"468a3104db41639fc628",665:"f5002b264ff0d2108842"}[e],j.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),j.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="jupyterlab-cell-queue:",j.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,u;if(void 0!==o)for(var l=document.getElementsByTagName("script"),f=0;f<l.length;f++){var s=l[f];if(s.getAttribute("src")==t||s.getAttribute("data-webpack")==r+o){i=s;break}}i||(u=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,j.nc&&i.setAttribute("nonce",j.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var p=(r,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(e=>e(n)),r)return r(n)},c=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),u&&document.head.appendChild(i)}},j.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{j.S={};var e={},r={};j.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];j.o(j.S,t)||(j.S[t]={});var a=j.S[t],i="jupyterlab-cell-queue",u=[];return"default"===t&&((e,r,t,n)=>{var o=a[e]=a[e]||{},u=o[r];(!u||!u.loaded&&(1!=!u.eager?n:i>u.from))&&(o[r]={get:()=>j.e(243).then(()=>()=>j(243)),from:i,eager:!1})})("jupyterlab-cell-queue","0.1.0"),e[t]=u.length?Promise.all(u).then(()=>e[t]=1):1}}})(),(()=>{var e;j.g.importScripts&&(e=j.g.location+"");var r=j.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),j.p=e})(),t=e=>{var r=e=>e.split(".").map(e=>+e==e?+e:e),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],u=(typeof i)[0];if(a!=u)return"o"==a&&"n"==u||"s"==u||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(u=e[a]))[0]?"-":(n>0?".":"")+(n=2,u);return t}var i=[];for(a=1;a<e.length;a++){var u=e[a];i.push(0===u?"not("+l()+")":1===u?"("+l()+" || "+l()+")":2===u?i.pop()+" "+i.pop():o(u))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,u=1,l=!0;;u++,i++){var f,s,p=u<e.length?(typeof e[u])[0]:"";if(i>=r.length||"o"==(s=(typeof(f=r[i]))[0]))return!l||("u"==p?u>n&&!o:""==p!=o);if("u"==s){if(!l||"u"!=p)return!1}else if(l)if(p==s)if(u<=n){if(f!=e[u])return!1}else{if(o?f>e[u]:f<e[u])return!1;f!=e[u]&&(l=!1)}else if("s"!=p&&"n"!=p){if(o||u<=n)return!1;l=!1,u--}else{if(u<=n||s<p!=o)return!1;l=!1}else"s"!=p&&"n"!=p&&(l=!1,u--)}}var c=[],d=c.pop.bind(c);for(i=1;i<e.length;i++){var h=e[i];c.push(1==h?d()|d():2==h?d()&d():h?a(h,r):!d())}return!!d()},i=(e,r)=>e&&j.o(e,r),u=e=>(e.loaded=1,e.get()),l=e=>Object.keys(e).reduce((r,t)=>(e[t].eager&&(r[t]=e[t]),r),{}),f=(e,r,t)=>{var o=t?l(e[r]):e[r];return Object.keys(o).reduce((e,r)=>!e||!o[e].loaded&&n(e,r)?r:e,0)},s=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",p=e=>{throw new Error(e)},c=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},d=(e,r,t)=>t?t():((e,r)=>p("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),h=(e=>function(r,t,n,o,a){var i=j.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,j.S[r],t,!1,o,a)):e(r,j.S[r],t,n,o,a)})((e,r,t,n,o,l)=>{if(!i(r,t))return d(e,t,l);var p=f(r,t,n);return a(o,p)||c(s(r,t,p,o)),u(r[t][p])}),v={},g={249:()=>h("default","@jupyterlab/ui-components",!1,[1,4,4,4]),256:()=>h("default","@lumino/widgets",!1,[1,2,3,1,,"alpha",0]),341:()=>h("default","@jupyterlab/notebook",!1,[1,4,4,4]),805:()=>h("default","@jupyterlab/apputils",!1,[1,4,5,4]),904:()=>h("default","@jupyterlab/application",!1,[1,4,4,4])},b={243:[249,256,341,805,904]},m={},j.f.consumes=(e,r)=>{j.o(b,e)&&b[e].forEach(e=>{if(j.o(v,e))return r.push(v[e]);if(!m[e]){var t=r=>{v[e]=0,j.m[e]=t=>{delete j.c[e],t.exports=r()}};m[e]=!0;var n=r=>{delete v[e],j.m[e]=t=>{throw delete j.c[e],r}};try{var o=g[e]();o.then?r.push(v[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}})},(()=>{var e={798:0};j.f.j=(r,t)=>{var n=j.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=o);var a=j.p+j.u(r),i=new Error;j.l(a,t=>{if(j.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}},"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,u]=t,l=0;if(a.some(r=>0!==e[r])){for(n in i)j.o(i,n)&&(j.m[n]=i[n]);u&&u(j)}for(r&&r(t);l<a.length;l++)o=a[l],j.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunkjupyterlab_cell_queue=self.webpackChunkjupyterlab_cell_queue||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),j.nc=void 0;var S=j(618);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB)["jupyterlab-cell-queue"]=S})();
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"packages": [
|
|
3
|
+
{
|
|
4
|
+
"name": "css-loader",
|
|
5
|
+
"versionInfo": "6.11.0",
|
|
6
|
+
"licenseId": "MIT",
|
|
7
|
+
"extractedText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"name": "style-loader",
|
|
11
|
+
"versionInfo": "3.3.4",
|
|
12
|
+
"licenseId": "MIT",
|
|
13
|
+
"extractedText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
jupyterlab_cell_queue-0.1.0.data/data/share/jupyter/labextensions/jupyterlab-cell-queue/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jupyterlab-cell-queue",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "See, remove and stop the cells waiting to run in a JupyterLab notebook.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"jupyter",
|
|
7
|
+
"jupyterlab",
|
|
8
|
+
"jupyterlab-extension"
|
|
9
|
+
],
|
|
10
|
+
"license": "BSD-3-Clause",
|
|
11
|
+
"author": "quietuseful",
|
|
12
|
+
"homepage": "https://github.com/quietuseful/jupyterlab-cell-queue",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/quietuseful/jupyterlab-cell-queue/issues"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/quietuseful/jupyterlab-cell-queue.git"
|
|
19
|
+
},
|
|
20
|
+
"type": "module",
|
|
21
|
+
"main": "src/index.js",
|
|
22
|
+
"style": "style/index.css",
|
|
23
|
+
"files": [
|
|
24
|
+
"src/**/*.js",
|
|
25
|
+
"style/**/*.css",
|
|
26
|
+
"schema/*.json",
|
|
27
|
+
"LICENSE",
|
|
28
|
+
"README.md"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"test": "node --test test/*.test.mjs",
|
|
32
|
+
"build": "jupyter labextension build ."
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@jupyterlab/application": "^4.4.4",
|
|
36
|
+
"@jupyterlab/apputils": "^4.5.4",
|
|
37
|
+
"@jupyterlab/notebook": "^4.4.4",
|
|
38
|
+
"@jupyterlab/ui-components": "^4.4.4",
|
|
39
|
+
"@lumino/widgets": "^2.3.1"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@jupyterlab/builder": "4.4.4"
|
|
43
|
+
},
|
|
44
|
+
"jupyterlab": {
|
|
45
|
+
"extension": true,
|
|
46
|
+
"outputDir": "jupyterlab_cell_queue/labextension",
|
|
47
|
+
"disabledExtensions": [
|
|
48
|
+
"@jupyterlab/notebook-extension:cell-executor"
|
|
49
|
+
],
|
|
50
|
+
"_build": {
|
|
51
|
+
"load": "static/remoteEntry.9dda16c9985f59d791fc.js",
|
|
52
|
+
"extension": "./extension",
|
|
53
|
+
"style": "./style"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"overrides": {
|
|
57
|
+
"webpack": "5.94.0"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkjupyterlab_cell_queue=self.webpackChunkjupyterlab_cell_queue||[]).push([[243],{243:(e,t,s)=>{s.r(t),s.d(t,{default:()=>b});var n=s(904),i=s(805),o=s(341),l=s(249);const r=new Set(["restarting","autorestarting","dead","terminating"]);function c(e){const t=e.model;return t.sharedModel&&"function"==typeof t.sharedModel.getId?t.sharedModel.getId():t.id}function u(e){const t=e.model;return t.sharedModel&&"function"==typeof t.sharedModel.getSource?t.sharedModel.getSource():t.value??""}function a(e,t){const s=e.model;let n;return"function"==typeof s.getMetadata?n=s.getMetadata("tags"):s.metadata&&(n=s.metadata.tags),Array.isArray(n)&&n.includes(t)}class d{constructor(e,t){this.owner=e,this.session=t,this.current=null,this.waiting=[],this.pumping=!1,this.slots=[],this._connect()}_connect(){const e=this.session,t=(e,t)=>{e&&"function"==typeof e.connect&&(e.connect(t,this),this.slots.push([e,t]))};t(e.statusChanged,(e,t)=>{r.has(t)&&this.owner._drop(this,"kernel-"+t)}),t(e.kernelChanged,(e,t)=>{t&&null!=t.oldValue&&this.owner._drop(this,"kernel-changed")}),t(e.disposed,()=>{this.owner._drop(this,"session-disposed"),this.owner._forget(this)})}disconnect(){for(const[e,t]of this.slots)e.disconnect(t,this);this.slots=[]}get idle(){return null===this.current&&0===this.waiting.length&&!this.pumping}}var h=s(256);function p(e,t=60){const s=("string"==typeof e?e:"").split(/\r?\n/).map(e=>e.trim()).find(e=>e.length>0);if(!s)return"(empty cell)";const n=Array.from(s);return n.length>t?n.slice(0,t-1).join("")+"…":s}function m(e,t){const s=t>=0?`Cell ${t+1}`:"Cell (moved or hidden)",n="running"===e.state?"running":"waiting",i=e.edited?", edited since queued; will run the current code":"";return{where:s,state:n,text:p(e.source),label:`${s}, ${n}${i}: ${p(e.source)}`}}class g extends h.Widget{constructor({queue:e,tracker:t,activateWidget:s}){super(),this.queue=e,this.tracker=t,this.activateWidget=s||(e=>e.activate()),this.id="jp-cell-queue-panel",this.addClass("jp-CellQueue"),this.title.caption="Cell Queue";const n=document.createElement("div");n.className="jp-CellQueue-header";const i=document.createElement("h2");i.className="jp-CellQueue-title",i.textContent="Cell Queue",this.status=document.createElement("p"),this.status.className="jp-CellQueue-status",this.status.setAttribute("role","status"),this.status.setAttribute("aria-live","polite"),this.stopButton=document.createElement("button"),this.stopButton.type="button",this.stopButton.className="jp-CellQueue-stop jp-mod-styled",this.stopButton.textContent="Stop after current cell",this.stopButton.title="Let the running cell finish and remove all waiting cells",this.stopButton.addEventListener("click",()=>{const e=this._session();e&&this.queue.stopAfterCurrent(e)}),n.append(i,this.status,this.stopButton),this.list=document.createElement("ol"),this.list.className="jp-CellQueue-list",this.list.setAttribute("aria-label","Queued cells"),this.note=document.createElement("p"),this.note.className="jp-CellQueue-note",this.note.textContent="Waiting cells are held in this browser tab and sent one at a time. Closing the tab drops them.",this.node.append(n,this.list,this.note),this._unsubscribe=e.subscribe(()=>this._scheduleRender()),t.currentChanged.connect(this._scheduleRender,this),this._pending=!1,this.render()}dispose(){this.isDisposed||(this._unsubscribe(),this.tracker.currentChanged.disconnect(this._scheduleRender,this),super.dispose())}_session(){const e=this.tracker.currentWidget;return e?e.sessionContext:null}_scheduleRender(){this._pending||this.isDisposed||(this._pending=!0,requestAnimationFrame(()=>{this._pending=!1,this.isDisposed||this.render()}))}render(){const e=this.tracker.currentWidget,t=e?e.sessionContext:null,s=t?this.queue.entries(t):[];this.status.textContent=e?function(e){const t=e.filter(e=>"running"===e.state).length,s=e.length-t;if(0===e.length)return"No cells queued.";const n=[];return t&&n.push("1 running"),n.push(1===s?"1 waiting":`${s} waiting`),n.join(", ")+"."}(s):"Open a notebook to see its queue.",this.stopButton.disabled=!s.some(e=>"waiting"===e.state),this.list.replaceChildren();for(const n of s){const s=e?e.content.widgets.indexOf(n.cell):-1,i=m(n,s),o=document.createElement("li");o.className="jp-CellQueue-item",o.dataset.state=n.state,n.edited&&(o.dataset.edited="true");const l=document.createElement("button");l.type="button",l.className="jp-CellQueue-jump",l.setAttribute("aria-label","Go to "+i.label),l.title="Go to this cell";const r=document.createElement("span");r.className="jp-CellQueue-where",r.textContent=`${i.where} · ${i.state}${n.edited?" · edited":""}`;const c=document.createElement("code");if(c.className="jp-CellQueue-code",c.textContent=i.text,l.append(r,c),l.addEventListener("click",()=>this._jump(n.cell)),o.append(l),"waiting"===n.state){const e=document.createElement("button");e.type="button",e.className="jp-CellQueue-remove",e.textContent="Remove",e.setAttribute("aria-label","Remove "+i.where+" from the queue"),e.addEventListener("click",()=>{t&&this.queue.remove(t,n.id)}),o.append(e)}this.list.append(o)}}_jump(e){const t=this.tracker.currentWidget;if(!t||e.isDisposed)return;const s=t.content,n=s.widgets.indexOf(e);n<0||(s.activeCellIndex=n,s.mode="command",this.activateWidget(t),s.scrollToCell(e,"center"))}}const f=new l.LabIcon({name:"jupyterlab-cell-queue:icon",svgstr:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><g class="jp-icon3" fill="#616161"><rect x="3" y="4" width="4" height="4" rx="1"/><rect x="9" y="5" width="12" height="2" rx="1"/><rect x="3" y="10" width="4" height="4" rx="1"/><rect x="9" y="11" width="12" height="2" rx="1"/><rect x="3" y="16" width="4" height="4" rx="1"/><rect x="9" y="17" width="12" height="2" rx="1"/></g></svg>'}),_=new class{constructor({runCell:e,onChange:t}={}){if("function"!=typeof e)throw new TypeError("CellQueue needs a runCell function");this._runCell=e,this._listeners=new Set,t&&this._listeners.add(t),this._queues=new Map,this._nextId=1,this._relocate=null}subscribe(e){return this._listeners.add(e),()=>this._listeners.delete(e)}setRelocator(e){this._relocate="function"==typeof e?e:null}run(e){const{cell:t,sessionContext:s}=e;if(!s||!t||!t.model||"code"!==t.model.type)return this._runCell(e);let n=this._queues.get(s);return n||(n=new d(this,s),this._queues.set(s,n)),new Promise((s,i)=>{const o={id:this._nextId++,options:e,cell:t,cellId:c(t),source:u(t),queuedAt:Date.now(),resolve:s,reject:i};n.waiting.push(o),this._setRunning(t),this._emit(),this._schedule(n)})}entries(e){const t=this._queues.get(e);if(!t)return[];const s=[],n=(e,t)=>{const n=e.cell.isDisposed?e.source:u(e.cell);s.push({id:e.id,cell:e.cell,cellId:e.cellId,state:t,source:n,edited:"waiting"===t&&n!==e.source})};t.current&&n(t.current,"running");for(const e of t.waiting)n(e,"waiting");return s}waitingCount(e){const t=this._queues.get(e);return t?t.waiting.length:0}remove(e,t){const s=this._queues.get(e);if(!s)return!1;const n=s.waiting.findIndex(e=>e.id===t);if(-1===n)return!1;const[i]=s.waiting.splice(n,1);return this._settleDropped(i),this._emit(),this._maybeForget(s),!0}removeCell(e,t){const s=this._queues.get(e);if(!s)return 0;const n=[],i=[];for(const e of s.waiting)(e.cell===t||e.cell.model===t.model?i:n).push(e);s.waiting=n;for(const e of i)this._settleDropped(e);return i.length&&(this._emit(),this._maybeForget(s)),i.length}stopAfterCurrent(e){const t=this._queues.get(e);return t?this._drop(t,"stop"):0}prune(e){const t=this._queues.get(e);if(!t)return 0;const s=[];let n=0;for(const e of t.waiting)this._revive(e)?s.push(e):(n++,e.resolve(!1));return t.waiting=s,n&&(this._emit(),this._maybeForget(t)),n}_schedule(e){e.pumping||(e.pumping=!0,Promise.resolve().then(()=>this._pump(e)))}async _pump(e){try{for(;e.waiting.length>0;){const t=e.waiting.shift();if(!this._revive(t)){t.resolve(!1),this._emit();continue}let s;e.current=t,this._emit();let n=null;try{s=await this._runCell(t.options)}catch(e){n=e??new Error("Cell execution failed")}e.current=null,n?(a(t.cell,"raises-exception")||this._drop(e,"error"),t.reject(n)):(!1!==s||t.cell.isDisposed||this._drop(e,"not-run"),t.resolve(s)),this._emit()}}finally{e.pumping=!1,this._maybeForget(e)}}_revive(e){const t=e.options.notebook;if(!e.cell.isDisposed&&function(e,t){const s=e&&e.cells;if(!s)return!0;for(const e of s)if(e===t)return!0;return!1}(t,e.cell.model))return!0;if(this._relocate){let s=null;try{s=this._relocate(t,e.cellId)}catch(e){s=null}if(s&&!s.isDisposed&&s.model&&"code"===s.model.type)return e.cell=s,e.options={...e.options,cell:s},this._setRunning(s),!0}return!1}_drop(e,t){if(0===e.waiting.length)return 0;const s=e.waiting;e.waiting=[];for(const e of s)this._settleDropped(e);return this._emit(),s.length}_settleDropped(e){this._setIdleIfUnused(e.cell),e.resolve(!1)}_isReferenced(e){for(const t of this._queues.values()){if(t.current&&t.current.cell.model===e.model)return!0;for(const s of t.waiting)if(s.cell.model===e.model)return!0}return!1}_setRunning(e){e.isDisposed||(e.model.executionState="running")}_setIdleIfUnused(e){e.isDisposed||this._isReferenced(e)||(e.model.executionState="idle")}_maybeForget(e){e.idle&&this._queues.get(e.session)===e&&(e.disconnect(),this._queues.delete(e.session))}_forget(e){e.disconnect(),this._queues.get(e.session)===e&&this._queues.delete(e.session)}_emit(){for(const e of this._listeners)try{e()}catch(e){console.error("jupyterlab-cell-queue: listener failed",e)}}}({runCell:o.runCell}),w={show:"cell-queue:show",stop:"cell-queue:stop-after-current",removeActive:"cell-queue:remove-active-cell"},C={id:"jupyterlab-cell-queue:executor",description:"Holds queued code cells in the browser and sends them one at a time.",autoStart:!0,provides:o.INotebookCellExecutor,activate:()=>Object.freeze({runCell:e=>_.run(e)})},v={id:"jupyterlab-cell-queue:panel",description:"Side panel and commands for the cell queue.",autoStart:!0,requires:[o.INotebookTracker],optional:[i.ICommandPalette,n.ILayoutRestorer],activate:(e,t,s,n)=>{_.setRelocator((e,s)=>{let n=null;return t.forEach(t=>{n||t.content.model!==e||(n=t.content.widgets.find(e=>!e.isDisposed&&e.model.sharedModel.getId()===s)??null)}),n}),t.widgetAdded.connect((e,t)=>{const s=()=>{const e=t.content.model;e&&e.cells.changed.connect(()=>{setTimeout(()=>_.prune(t.sessionContext),0)})};t.content.model?s():t.content.modelChanged.connect(s)});const i=new g({queue:_,tracker:t,activateWidget:t=>e.shell.activateById(t.id)});i.title.icon=f,e.shell.add(i,"right",{rank:900}),n&&n.add(i,i.id);const o=()=>t.currentWidget;if(e.commands.addCommand(w.show,{label:"Show Cell Queue",caption:"Show the cells waiting to run in this notebook",execute:()=>e.shell.activateById(i.id)}),e.commands.addCommand(w.stop,{label:"Stop After Current Cell",caption:"Let the running cell finish and remove all waiting cells",isEnabled:()=>!!o()&&_.waitingCount(o().sessionContext)>0,execute:()=>{const e=o();return e?_.stopAfterCurrent(e.sessionContext):0}}),e.commands.addCommand(w.removeActive,{label:"Remove Cell From Queue",caption:"Remove the active cell from the queue if it is still waiting",isEnabled:()=>{const e=o(),t=e&&e.content.activeCell;return!!t&&_.entries(e.sessionContext).some(e=>"waiting"===e.state&&e.cell===t)},execute:()=>{const e=o(),t=e&&e.content.activeCell;return t?_.removeCell(e.sessionContext,t):0}}),_.subscribe(()=>{e.commands.notifyCommandChanged(w.stop),e.commands.notifyCommandChanged(w.removeActive)}),s){const e="Notebook Operations";for(const t of Object.values(w))s.addItem({command:t,category:e})}e.contextMenu.addItem({command:w.removeActive,selector:".jp-Notebook .jp-CodeCell",rank:12}),e.contextMenu.addItem({command:w.stop,selector:".jp-Notebook",rank:12})}},b=[C,v]}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkjupyterlab_cell_queue=self.webpackChunkjupyterlab_cell_queue||[]).push([[665],{646:(e,n,t)=>{t.d(n,{A:()=>i});var r=t(601),o=t.n(r),a=t(314),l=t.n(a)()(o());l.push([e.id,"/* Copyright (c) 2026 jupyterlab-cell-queue contributors. BSD-3-Clause. */\n.jp-CellQueue {\n display: flex;\n flex-direction: column;\n padding: 8px;\n overflow: auto;\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n}\n.jp-CellQueue-title {\n margin: 0 0 4px;\n font-size: var(--jp-ui-font-size2);\n font-weight: 600;\n}\n.jp-CellQueue-status { margin: 0 0 8px; }\n.jp-CellQueue-stop { align-self: flex-start; margin-bottom: 8px; }\n.jp-CellQueue-list { list-style: none; margin: 0; padding: 0; }\n.jp-CellQueue-item {\n display: flex;\n gap: 4px;\n align-items: stretch;\n margin-bottom: 4px;\n border-left: 3px solid var(--jp-border-color1);\n}\n.jp-CellQueue-item[data-state='running'] { border-left-color: var(--jp-brand-color1); }\n.jp-CellQueue-item[data-edited='true'] { border-left-color: var(--jp-warn-color1); }\n.jp-CellQueue-jump {\n flex: 1 1 auto;\n min-width: 0;\n display: flex;\n flex-direction: column;\n text-align: left;\n padding: 4px 6px;\n border: 1px solid transparent;\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n.jp-CellQueue-jump:hover { background: var(--jp-layout-color2); }\n.jp-CellQueue-where { color: var(--jp-ui-font-color1); font-weight: 600; }\n.jp-CellQueue-code {\n font-family: var(--jp-code-font-family);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.jp-CellQueue-remove {\n flex: 0 0 auto;\n align-self: center;\n padding: 2px 8px;\n border: 1px solid var(--jp-border-color1);\n border-radius: 2px;\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n font: inherit;\n cursor: pointer;\n}\n.jp-CellQueue-remove:hover { background: var(--jp-layout-color2); }\n.jp-CellQueue button:focus-visible {\n outline: 2px solid var(--jp-brand-color1);\n outline-offset: 1px;\n}\n.jp-CellQueue-note { margin-top: 12px; color: var(--jp-ui-font-color2); }\n",""]);const i=l},314:e=>{e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t="",r=void 0!==n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),r&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),r&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t}).join("")},n.i=function(e,t,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var l={};if(r)for(var i=0;i<this.length;i++){var u=this[i][0];null!=u&&(l[u]=!0)}for(var c=0;c<e.length;c++){var p=[].concat(e[c]);r&&l[p[0]]||(void 0!==a&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=a),t&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=t):p[2]=t),o&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=o):p[4]="".concat(o)),n.push(p))}},n}},601:e=>{e.exports=function(e){return e[1]}},665:(e,n,t)=>{t.r(n),t.d(n,{default:()=>g});var r=t(72),o=t.n(r),a=t(825),l=t.n(a),i=t(659),u=t.n(i),c=t(56),p=t.n(c),s=t(540),d=t.n(s),f=t(113),v=t.n(f),m=t(646),h={};h.styleTagTransform=v(),h.setAttributes=p(),h.insert=u().bind(null,"head"),h.domAPI=l(),h.insertStyleElement=d(),o()(m.A,h);const g=m.A&&m.A.locals?m.A.locals:void 0},72:e=>{var n=[];function t(e){for(var t=-1,r=0;r<n.length;r++)if(n[r].identifier===e){t=r;break}return t}function r(e,r){for(var a={},l=[],i=0;i<e.length;i++){var u=e[i],c=r.base?u[0]+r.base:u[0],p=a[c]||0,s="".concat(c," ").concat(p);a[c]=p+1;var d=t(s),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)n[d].references++,n[d].updater(f);else{var v=o(f,r);r.byIndex=i,n.splice(i,0,{identifier:s,updater:v,references:1})}l.push(s)}return l}function o(e,n){var t=n.domAPI(n);return t.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;t.update(e=n)}else t.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var l=0;l<a.length;l++){var i=t(a[l]);n[i].references--}for(var u=r(e,o),c=0;c<a.length;c++){var p=t(a[c]);0===n[p].references&&(n[p].updater(),n.splice(p,1))}a=u}}},659:e=>{var n={};e.exports=function(e,t){var r=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}},540:e=>{e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},56:(e,n,t)=>{e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(t){!function(e,n,t){var r="";t.supports&&(r+="@supports (".concat(t.supports,") {")),t.media&&(r+="@media ".concat(t.media," {"));var o=void 0!==t.layer;o&&(r+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),r+=t.css,o&&(r+="}"),t.media&&(r+="}"),t.supports&&(r+="}");var a=t.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),n.styleTagTransform(r,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},113:e=>{e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _JUPYTERLAB;(()=>{"use strict";var e,r,t,n,o,a,i,u,l,f,s,p,c,d,h,v,g,b,m,y={618:(e,r,t)=>{var n={"./index":()=>t.e(243).then(()=>()=>t(243)),"./extension":()=>t.e(243).then(()=>()=>t(243)),"./style":()=>t.e(665).then(()=>()=>t(665))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then(()=>{throw new Error('Module "'+e+'" does not exist in container.')}),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},w={};function j(e){var r=w[e];if(void 0!==r)return r.exports;var t=w[e]={id:e,exports:{}};return y[e](t,t.exports,j),t.exports}j.m=y,j.c=w,j.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return j.d(r,{a:r}),r},j.d=(e,r)=>{for(var t in r)j.o(r,t)&&!j.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},j.f={},j.e=e=>Promise.all(Object.keys(j.f).reduce((r,t)=>(j.f[t](e,r),r),[])),j.u=e=>e+"."+{243:"468a3104db41639fc628",665:"f5002b264ff0d2108842"}[e]+".js?v="+{243:"468a3104db41639fc628",665:"f5002b264ff0d2108842"}[e],j.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),j.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="jupyterlab-cell-queue:",j.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,u;if(void 0!==o)for(var l=document.getElementsByTagName("script"),f=0;f<l.length;f++){var s=l[f];if(s.getAttribute("src")==t||s.getAttribute("data-webpack")==r+o){i=s;break}}i||(u=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,j.nc&&i.setAttribute("nonce",j.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var p=(r,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(e=>e(n)),r)return r(n)},c=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),u&&document.head.appendChild(i)}},j.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{j.S={};var e={},r={};j.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];j.o(j.S,t)||(j.S[t]={});var a=j.S[t],i="jupyterlab-cell-queue",u=[];return"default"===t&&((e,r,t,n)=>{var o=a[e]=a[e]||{},u=o[r];(!u||!u.loaded&&(1!=!u.eager?n:i>u.from))&&(o[r]={get:()=>j.e(243).then(()=>()=>j(243)),from:i,eager:!1})})("jupyterlab-cell-queue","0.1.0"),e[t]=u.length?Promise.all(u).then(()=>e[t]=1):1}}})(),(()=>{var e;j.g.importScripts&&(e=j.g.location+"");var r=j.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),j.p=e})(),t=e=>{var r=e=>e.split(".").map(e=>+e==e?+e:e),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],u=(typeof i)[0];if(a!=u)return"o"==a&&"n"==u||"s"==u||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(u=e[a]))[0]?"-":(n>0?".":"")+(n=2,u);return t}var i=[];for(a=1;a<e.length;a++){var u=e[a];i.push(0===u?"not("+l()+")":1===u?"("+l()+" || "+l()+")":2===u?i.pop()+" "+i.pop():o(u))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,u=1,l=!0;;u++,i++){var f,s,p=u<e.length?(typeof e[u])[0]:"";if(i>=r.length||"o"==(s=(typeof(f=r[i]))[0]))return!l||("u"==p?u>n&&!o:""==p!=o);if("u"==s){if(!l||"u"!=p)return!1}else if(l)if(p==s)if(u<=n){if(f!=e[u])return!1}else{if(o?f>e[u]:f<e[u])return!1;f!=e[u]&&(l=!1)}else if("s"!=p&&"n"!=p){if(o||u<=n)return!1;l=!1,u--}else{if(u<=n||s<p!=o)return!1;l=!1}else"s"!=p&&"n"!=p&&(l=!1,u--)}}var c=[],d=c.pop.bind(c);for(i=1;i<e.length;i++){var h=e[i];c.push(1==h?d()|d():2==h?d()&d():h?a(h,r):!d())}return!!d()},i=(e,r)=>e&&j.o(e,r),u=e=>(e.loaded=1,e.get()),l=e=>Object.keys(e).reduce((r,t)=>(e[t].eager&&(r[t]=e[t]),r),{}),f=(e,r,t)=>{var o=t?l(e[r]):e[r];return Object.keys(o).reduce((e,r)=>!e||!o[e].loaded&&n(e,r)?r:e,0)},s=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",p=e=>{throw new Error(e)},c=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},d=(e,r,t)=>t?t():((e,r)=>p("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),h=(e=>function(r,t,n,o,a){var i=j.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,j.S[r],t,!1,o,a)):e(r,j.S[r],t,n,o,a)})((e,r,t,n,o,l)=>{if(!i(r,t))return d(e,t,l);var p=f(r,t,n);return a(o,p)||c(s(r,t,p,o)),u(r[t][p])}),v={},g={249:()=>h("default","@jupyterlab/ui-components",!1,[1,4,4,4]),256:()=>h("default","@lumino/widgets",!1,[1,2,3,1,,"alpha",0]),341:()=>h("default","@jupyterlab/notebook",!1,[1,4,4,4]),805:()=>h("default","@jupyterlab/apputils",!1,[1,4,5,4]),904:()=>h("default","@jupyterlab/application",!1,[1,4,4,4])},b={243:[249,256,341,805,904]},m={},j.f.consumes=(e,r)=>{j.o(b,e)&&b[e].forEach(e=>{if(j.o(v,e))return r.push(v[e]);if(!m[e]){var t=r=>{v[e]=0,j.m[e]=t=>{delete j.c[e],t.exports=r()}};m[e]=!0;var n=r=>{delete v[e],j.m[e]=t=>{throw delete j.c[e],r}};try{var o=g[e]();o.then?r.push(v[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}})},(()=>{var e={798:0};j.f.j=(r,t)=>{var n=j.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=o);var a=j.p+j.u(r),i=new Error;j.l(a,t=>{if(j.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}},"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,u]=t,l=0;if(a.some(r=>0!==e[r])){for(n in i)j.o(i,n)&&(j.m[n]=i[n]);u&&u(j)}for(r&&r(t);l<a.length;l++)o=a[l],j.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunkjupyterlab_cell_queue=self.webpackChunkjupyterlab_cell_queue||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),j.nc=void 0;var S=j(618);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB)["jupyterlab-cell-queue"]=S})();
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"packages": [
|
|
3
|
+
{
|
|
4
|
+
"name": "css-loader",
|
|
5
|
+
"versionInfo": "6.11.0",
|
|
6
|
+
"licenseId": "MIT",
|
|
7
|
+
"extractedText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"name": "style-loader",
|
|
11
|
+
"versionInfo": "3.3.4",
|
|
12
|
+
"licenseId": "MIT",
|
|
13
|
+
"extractedText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: jupyterlab-cell-queue
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: See, remove and stop the cells waiting to run in a JupyterLab notebook.
|
|
5
|
+
Project-URL: Homepage, https://github.com/quietuseful/jupyterlab-cell-queue
|
|
6
|
+
Project-URL: Issues, https://github.com/quietuseful/jupyterlab-cell-queue/issues
|
|
7
|
+
Author: quietuseful
|
|
8
|
+
License: BSD 3-Clause License
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2026, jupyterlab-cell-queue contributors
|
|
11
|
+
All rights reserved.
|
|
12
|
+
|
|
13
|
+
Redistribution and use in source and binary forms, with or without
|
|
14
|
+
modification, are permitted provided that the following conditions are met:
|
|
15
|
+
|
|
16
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
17
|
+
list of conditions and the following disclaimer.
|
|
18
|
+
|
|
19
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
20
|
+
this list of conditions and the following disclaimer in the documentation
|
|
21
|
+
and/or other materials provided with the distribution.
|
|
22
|
+
|
|
23
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
24
|
+
contributors may be used to endorse or promote products derived from
|
|
25
|
+
this software without specific prior written permission.
|
|
26
|
+
|
|
27
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
28
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
29
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
30
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
31
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
32
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
33
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
34
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
35
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
36
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
37
|
+
License-File: LICENSE
|
|
38
|
+
Classifier: Framework :: Jupyter
|
|
39
|
+
Classifier: Framework :: Jupyter :: JupyterLab
|
|
40
|
+
Classifier: Framework :: Jupyter :: JupyterLab :: 4
|
|
41
|
+
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions
|
|
42
|
+
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt
|
|
43
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
44
|
+
Classifier: Programming Language :: Python :: 3
|
|
45
|
+
Requires-Python: >=3.9
|
|
46
|
+
Description-Content-Type: text/markdown
|
|
47
|
+
|
|
48
|
+
# jupyterlab-cell-queue
|
|
49
|
+
|
|
50
|
+
A JupyterLab 4 extension that shows the cells waiting to run in the current
|
|
51
|
+
notebook and lets you remove them before they start.
|
|
52
|
+
|
|
53
|
+
Today, when you press "Run All" or queue several cells with Shift+Enter,
|
|
54
|
+
JupyterLab sends every cell to the kernel at once. A cell that is already in
|
|
55
|
+
the kernel's queue cannot be withdrawn; the only way out is to interrupt, which
|
|
56
|
+
drops everything. This extension holds waiting cells in the browser instead and
|
|
57
|
+
sends them one at a time, so a waiting cell can still be removed.
|
|
58
|
+
|
|
59
|
+
Related requests: jupyterlab/jupyterlab#7825, jupyter/notebook#2340.
|
|
60
|
+
|
|
61
|
+
## Features
|
|
62
|
+
|
|
63
|
+
- **Cell Queue side panel** (right sidebar): the running cell and every waiting
|
|
64
|
+
cell of the current notebook, with its position and first line of code.
|
|
65
|
+
- **Remove** a single waiting cell. It goes back to idle and is never sent.
|
|
66
|
+
- **Stop after current cell**: the running cell finishes, all waiting cells
|
|
67
|
+
are removed. Also a command and a notebook context-menu entry.
|
|
68
|
+
- **Jump to a cell** by clicking its entry.
|
|
69
|
+
- **Remove Cell From Queue** for the active cell (command palette and cell
|
|
70
|
+
context menu).
|
|
71
|
+
|
|
72
|
+
Behaviour that stays as in stock JupyterLab:
|
|
73
|
+
|
|
74
|
+
- Waiting cells show the `[*]` prompt.
|
|
75
|
+
- An error stops the queue. Cells tagged `raises-exception` do not stop it,
|
|
76
|
+
matching the kernel's `stop_on_error` rule.
|
|
77
|
+
- An interrupt (KeyboardInterrupt) stops the queue.
|
|
78
|
+
- A kernel restart, kernel change or dead kernel clears the queue.
|
|
79
|
+
- Deleting a waiting cell removes it from the queue. Moving a waiting cell keeps
|
|
80
|
+
it in the queue.
|
|
81
|
+
- Markdown cells render immediately.
|
|
82
|
+
|
|
83
|
+
## Limits, please read
|
|
84
|
+
|
|
85
|
+
1. **The queue lives in the browser tab.** If you close the tab, reload the
|
|
86
|
+
page, close the notebook or your computer goes to sleep, waiting cells are
|
|
87
|
+
not run. The cell that is already running keeps running in the kernel.
|
|
88
|
+
2. **Slower for many tiny cells.** Each cell costs one extra round trip
|
|
89
|
+
between browser and kernel. Measured locally (JupyterLab 4.4.4, ipykernel
|
|
90
|
+
6.29, same machine): "Run All" over 102 trivial cells took 5.3 s with the
|
|
91
|
+
extension and 1.2 s without it, about 40 ms extra per cell. For cells that
|
|
92
|
+
take seconds or minutes this does not matter; for hundreds of instant cells
|
|
93
|
+
it does.
|
|
94
|
+
3. **Waiting cells run the code they have when they are sent**, not when you
|
|
95
|
+
pressed Shift+Enter. Entries edited since they were queued are marked
|
|
96
|
+
"edited" in the panel.
|
|
97
|
+
4. **Removed cells keep their previous output and execution count.** Stock
|
|
98
|
+
JupyterLab clears a cell's output as soon as it is queued; this extension
|
|
99
|
+
clears it only when the cell is actually sent.
|
|
100
|
+
5. **Only one cell executor can be active.** The extension replaces the
|
|
101
|
+
`@jupyterlab/notebook-extension:cell-executor` plugin. It does not work
|
|
102
|
+
together with other extensions that replace it, such as server-side
|
|
103
|
+
execution in jupyter-collaboration or jupyter-server-nbmodel.
|
|
104
|
+
6. **Only this tab's queue is shown.** Requests sent by other clients
|
|
105
|
+
connected to the same kernel are not visible.
|
|
106
|
+
|
|
107
|
+
## Requirements and install
|
|
108
|
+
|
|
109
|
+
- JupyterLab >= 4.4 (tested: 4.4.4 and 4.5.6). The cell-executor interface it
|
|
110
|
+
relies on is unchanged in 4.6.6 and 4.7.0b2 (source compared, not run).
|
|
111
|
+
- Jupyter Notebook 7: basic check passed on 7.4.4 (queue, remove).
|
|
112
|
+
|
|
113
|
+
Not published on PyPI yet. To build from source you need Node.js >= 20 and a
|
|
114
|
+
`jupyter` with JupyterLab 4:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
tools/build.sh /path/to/jupyter # builds into ~/.cache/jupyterlab-cell-queue-build
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Then either point JupyterLab at the built folder
|
|
121
|
+
(`--LabApp.extra_labextensions_path=<folder containing jupyterlab-cell-queue/>`),
|
|
122
|
+
or build a wheel with `WHEEL_PYTHON=/path/to/python tools/build.sh` (needs
|
|
123
|
+
`hatchling==1.27.0` and `hatch-jupyter-builder==0.9.1`) and `pip install` it.
|
|
124
|
+
|
|
125
|
+
To turn it off: `jupyter labextension disable jupyterlab-cell-queue` (add
|
|
126
|
+
`--level=user` if you cannot write to the Python environment), then reload the
|
|
127
|
+
browser tab. JupyterLab then uses its own executor again: checked on 4.4.4,
|
|
128
|
+
where the core `cell-executor` plugin was active again after the reload and
|
|
129
|
+
"Run All" behaved as stock. `jupyter labextension enable jupyterlab-cell-queue`
|
|
130
|
+
turns it back on. To remove it completely: `pip uninstall jupyterlab-cell-queue`
|
|
131
|
+
and reload.
|
|
132
|
+
|
|
133
|
+
## Privacy and permissions
|
|
134
|
+
|
|
135
|
+
Frontend only. No server extension, no network requests of its own, no
|
|
136
|
+
telemetry, no storage. Cell code is displayed as text only, never executed or
|
|
137
|
+
rendered as HTML by the panel.
|
|
138
|
+
|
|
139
|
+
## Development and tests
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
npm test # 42 unit tests, Node's built-in test runner, no install needed
|
|
143
|
+
node tools/mutate.mjs # breaks the code 13 ways on purpose; every mutation must fail a test
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
The unit tests cover order, one-at-a-time sending, remove, stop after current,
|
|
147
|
+
errors (incl. `raises-exception`), interrupt/restart/kernel change (the first
|
|
148
|
+
kernel start of a notebook keeps the queue), notebook
|
|
149
|
+
closed, cell deleted or moved while waiting, the same cell queued twice, two
|
|
150
|
+
notebooks at once and listener failures.
|
|
151
|
+
|
|
152
|
+
`tools/e2e_jupyterlab.py` drives a real JupyterLab with a real IPython kernel
|
|
153
|
+
through Playwright (27 checks: the scenarios above plus jump, panel contents,
|
|
154
|
+
prompts and console errors). It needs a running server started with
|
|
155
|
+
`--LabApp.expose_app_in_browser=True`.
|
|
156
|
+
|
|
157
|
+
Dependencies: only JupyterLab's own packages (provided by JupyterLab at
|
|
158
|
+
runtime) and `@jupyterlab/builder` for the build. Exact versions and hashes are
|
|
159
|
+
in `package-lock.json`. The bundled output contains only `css-loader` and
|
|
160
|
+
`style-loader` runtime code (MIT).
|
|
161
|
+
|
|
162
|
+
## Not verified
|
|
163
|
+
|
|
164
|
+
- JupyterLab 4.6 and 4.7 in a running instance.
|
|
165
|
+
- Kernels other than ipykernel (e.g. IRkernel, which handles aborted requests
|
|
166
|
+
differently).
|
|
167
|
+
- Real-time collaboration (several users in one notebook).
|
|
168
|
+
- Behaviour with JupyterLab's "windowed" notebook mode on very large
|
|
169
|
+
notebooks beyond the cell counts used in the tests.
|
|
170
|
+
- `pip uninstall jupyterlab-cell-queue` restoring the core executor: follows
|
|
171
|
+
from how jupyterlab_server reads `disabledExtensions` (only from installed
|
|
172
|
+
extensions), but was not run. Disabling with `jupyter labextension disable`
|
|
173
|
+
was run.
|
|
174
|
+
- Turning the core `cell-executor` plugin back on in JupyterLab's Plugin
|
|
175
|
+
Manager while this extension is active (two plugins would then provide the
|
|
176
|
+
same executor). Disable this extension instead.
|
|
177
|
+
- If the kernel is shutting down, JupyterLab shows its "Kernel Terminating"
|
|
178
|
+
dialog; with several waiting cells you may see it once per cell.
|
|
179
|
+
|
|
180
|
+
## License
|
|
181
|
+
|
|
182
|
+
BSD 3-Clause, see `LICENSE`.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
jupyterlab_cell_queue/__init__.py,sha256=pUnGRyhcSVl-uzQBOx-QYKmxj4KUGZC1ccu1uk5vu9k,208
|
|
2
|
+
jupyterlab_cell_queue/labextension/package.json,sha256=HUpLejC3RvMFJAJ7wmGleRFPIaIfURBryihySLSIdJ0,1511
|
|
3
|
+
jupyterlab_cell_queue/labextension/static/243.468a3104db41639fc628.js,sha256=RooxBNtBY5_GKO0EgKXmeeE5c8kxneH8Cdjxjj4TEm8,11756
|
|
4
|
+
jupyterlab_cell_queue/labextension/static/665.f5002b264ff0d2108842.js,sha256=9QArJk_w0hCIQuMpYNGJmVzR8M1QEdssf8D_i2ly0jA,5896
|
|
5
|
+
jupyterlab_cell_queue/labextension/static/remoteEntry.9dda16c9985f59d791fc.js,sha256=ndoWyZhfWdeR_Kq6roVjRQQ81EYXc7Ug_cLssxwBWfA,6860
|
|
6
|
+
jupyterlab_cell_queue/labextension/static/style.js,sha256=bs8MsTcVR_BVKpWPjStyZrO2bgo1IIkLqTTYhosg6sc,165
|
|
7
|
+
jupyterlab_cell_queue/labextension/static/third-party-licenses.json,sha256=W6N2sSD7tQihMqQk64F9xMd1Flfr2KO97esAiHUOYdM,2453
|
|
8
|
+
jupyterlab_cell_queue-0.1.0.data/data/share/jupyter/labextensions/jupyterlab-cell-queue/package.json,sha256=HUpLejC3RvMFJAJ7wmGleRFPIaIfURBryihySLSIdJ0,1511
|
|
9
|
+
jupyterlab_cell_queue-0.1.0.data/data/share/jupyter/labextensions/jupyterlab-cell-queue/static/243.468a3104db41639fc628.js,sha256=RooxBNtBY5_GKO0EgKXmeeE5c8kxneH8Cdjxjj4TEm8,11756
|
|
10
|
+
jupyterlab_cell_queue-0.1.0.data/data/share/jupyter/labextensions/jupyterlab-cell-queue/static/665.f5002b264ff0d2108842.js,sha256=9QArJk_w0hCIQuMpYNGJmVzR8M1QEdssf8D_i2ly0jA,5896
|
|
11
|
+
jupyterlab_cell_queue-0.1.0.data/data/share/jupyter/labextensions/jupyterlab-cell-queue/static/remoteEntry.9dda16c9985f59d791fc.js,sha256=ndoWyZhfWdeR_Kq6roVjRQQ81EYXc7Ug_cLssxwBWfA,6860
|
|
12
|
+
jupyterlab_cell_queue-0.1.0.data/data/share/jupyter/labextensions/jupyterlab-cell-queue/static/style.js,sha256=bs8MsTcVR_BVKpWPjStyZrO2bgo1IIkLqTTYhosg6sc,165
|
|
13
|
+
jupyterlab_cell_queue-0.1.0.data/data/share/jupyter/labextensions/jupyterlab-cell-queue/static/third-party-licenses.json,sha256=W6N2sSD7tQihMqQk64F9xMd1Flfr2KO97esAiHUOYdM,2453
|
|
14
|
+
jupyterlab_cell_queue-0.1.0.data/data/share/jupyter/labextensions/jupyterlab-cell-queue/install.json,sha256=WP3SgJhHCQe4sFLCpHHPke7ayY9teBKWu0Uyy0yyCe0,203
|
|
15
|
+
jupyterlab_cell_queue-0.1.0.dist-info/METADATA,sha256=O_1RvLRkf5eAK09v89vgi711emDpFW4TPWSma7H6q34,9041
|
|
16
|
+
jupyterlab_cell_queue-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
17
|
+
jupyterlab_cell_queue-0.1.0.dist-info/licenses/LICENSE,sha256=zFRSLTQc4HaY_ba1EA9JBYGXvXyiNYdk8ayd8OmAWYw,1542
|
|
18
|
+
jupyterlab_cell_queue-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026, jupyterlab-cell-queue contributors
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
17
|
+
contributors may be used to endorse or promote products derived from
|
|
18
|
+
this software without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|