notebook 7.3.0a1__py3-none-any.whl → 7.3.0b1__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.
Potentially problematic release.
This version of notebook might be problematic. Click here for more details.
- notebook/_version.py +1 -1
- notebook/app.py +10 -2
- notebook/static/1088.bundle.js +1 -1
- notebook/static/113.bundle.js +1 -1
- notebook/static/1198.bundle.js +1 -1
- notebook/static/131.bundle.js +1 -1
- notebook/static/1326.bundle.js +1 -1
- notebook/static/134.bundle.js +1 -1
- notebook/static/1408.bundle.js +1 -1
- notebook/static/1496.bundle.js +1 -1
- notebook/static/1584.bundle.js +1 -1
- notebook/static/1647.bundle.js +1 -1
- notebook/static/1650.bundle.js +1 -1
- notebook/static/1684.bundle.js +1 -1
- notebook/static/170.bundle.js +1 -1
- notebook/static/1809.bundle.js +1 -1
- notebook/static/1827.bundle.js +1 -1
- notebook/static/1828.bundle.js +1 -1
- notebook/static/1833.bundle.js +1 -1
- notebook/static/1958.bundle.js +1 -1
- notebook/static/1962.bundle.js +1 -1
- notebook/static/2007.bundle.js +1 -1
- notebook/static/2065.bundle.js +1 -1
- notebook/static/2088.bundle.js +1 -1
- notebook/static/2089.bundle.js +1 -1
- notebook/static/2122.bundle.js +1 -1
- notebook/static/2167.bundle.js +1 -1
- notebook/static/2184.bundle.js +1 -1
- notebook/static/2311.bundle.js +1 -1
- notebook/static/{3030.bundle.js → 2323.bundle.js} +1 -1
- notebook/static/2401.bundle.js +1 -1
- notebook/static/2424.bundle.js +377 -0
- notebook/static/2479.bundle.js +1 -1
- notebook/static/2489.bundle.js +1 -1
- notebook/static/2607.bundle.js +1 -1
- notebook/static/2615.bundle.js +1 -1
- notebook/static/2636.bundle.js +1 -1
- notebook/static/2756.bundle.js +1 -1
- notebook/static/2813.bundle.js +1 -1
- notebook/static/2866.bundle.js +1 -1
- notebook/static/2924.bundle.js +1 -1
- notebook/static/2944.bundle.js +1 -1
- notebook/static/2955.bundle.js +1 -0
- notebook/static/3129.bundle.js +1 -1
- notebook/static/3146.bundle.js +1 -1
- notebook/static/3187.bundle.js +1 -1
- notebook/static/3213.bundle.js +1 -1
- notebook/static/3301.bundle.js +1 -1
- notebook/static/3325.bundle.js +1 -1
- notebook/static/3340.bundle.js +1 -1
- notebook/static/3360.bundle.js +1 -1
- notebook/static/3466.bundle.js +1 -1
- notebook/static/35.bundle.js +1 -1
- notebook/static/3512.bundle.js +1 -1
- notebook/static/3676.bundle.js +1 -1
- notebook/static/3680.bundle.js +1 -1
- notebook/static/374.bundle.js +1 -1
- notebook/static/3768.bundle.js +1 -1
- notebook/static/377.bundle.js +1 -1
- notebook/static/3863.bundle.js +1 -1
- notebook/static/3881.bundle.js +1 -1
- notebook/static/4042.bundle.js +1 -1
- notebook/static/4058.bundle.js +1 -1
- notebook/static/409.bundle.js +1 -1
- notebook/static/4212.bundle.js +1 -1
- notebook/static/4242.bundle.js +79 -0
- notebook/static/4271.bundle.js +1 -1
- notebook/static/4291.bundle.js +1 -1
- notebook/static/4382.bundle.js +1 -1
- notebook/static/4499.bundle.js +1 -1
- notebook/static/4526.bundle.js +1 -1
- notebook/static/4588.bundle.js +1 -1
- notebook/static/4630.bundle.js +1 -1
- notebook/static/4645.bundle.js +1 -1
- notebook/static/4811.bundle.js +1 -1
- notebook/static/4837.bundle.js +1 -1
- notebook/static/5099.bundle.js +1 -1
- notebook/static/5135.bundle.js +1 -1
- notebook/static/5166.bundle.js +1 -1
- notebook/static/5234.bundle.js +1 -1
- notebook/static/5254.bundle.js +1 -1
- notebook/static/5261.bundle.js +1 -1
- notebook/static/5263.bundle.js +1 -0
- notebook/static/5313.bundle.js +1 -1
- notebook/static/5325.bundle.js +1 -1
- notebook/static/5346.bundle.js +1 -1
- notebook/static/5426.bundle.js +1 -1
- notebook/static/5430.bundle.js +653 -0
- notebook/static/545.bundle.js +1 -1
- notebook/static/5451.bundle.js +1 -1
- notebook/static/5573.bundle.js +1 -1
- notebook/static/5601.bundle.js +1 -1
- notebook/static/5649.bundle.js +2 -2
- notebook/static/5733.bundle.js +1 -1
- notebook/static/5850.bundle.js +1 -1
- notebook/static/5912.bundle.js +1 -1
- notebook/static/5952.bundle.js +1 -0
- notebook/static/6017.bundle.js +1 -1
- notebook/static/6061.bundle.js +1 -1
- notebook/static/6139.bundle.js +1 -1
- notebook/static/62.bundle.js +1 -1
- notebook/static/6271.bundle.js +1 -1
- notebook/static/6345.bundle.js +1 -1
- notebook/static/6604.bundle.js +1 -1
- notebook/static/6621.bundle.js +1 -1
- notebook/static/6627.bundle.js +1 -1
- notebook/static/6648.bundle.js +1 -0
- notebook/static/6731.bundle.js +1 -1
- notebook/static/6748.bundle.js +1 -1
- notebook/static/677.bundle.js +1 -1
- notebook/static/6815.bundle.js +1 -1
- notebook/static/6853.bundle.js +1 -1
- notebook/static/6893.bundle.js +1 -1
- notebook/static/690.bundle.js +1 -1
- notebook/static/6962.bundle.js +1 -1
- notebook/static/6999.bundle.js +1 -1
- notebook/static/7226.bundle.js +1 -1
- notebook/static/7252.bundle.js +1 -1
- notebook/static/7302.bundle.js +1 -1
- notebook/static/7369.bundle.js +1 -1
- notebook/static/7386.bundle.js +1 -1
- notebook/static/7391.bundle.js +1 -1
- notebook/static/7543.bundle.js +1 -1
- notebook/static/755.bundle.js +1 -1
- notebook/static/7603.bundle.js +1 -1
- notebook/static/7639.bundle.js +1 -1
- notebook/static/7655.bundle.js +1 -1
- notebook/static/7684.bundle.js +1 -1
- notebook/static/7811.bundle.js +1 -1
- notebook/static/7812.bundle.js +1 -1
- notebook/static/7819.bundle.js +1 -1
- notebook/static/7821.bundle.js +1 -1
- notebook/static/7854.bundle.js +1 -1
- notebook/static/7866.bundle.js +1 -0
- notebook/static/7900.bundle.js +1 -1
- notebook/static/7906.bundle.js +1 -1
- notebook/static/8010.bundle.js +1 -1
- notebook/static/8032.bundle.js +1 -1
- notebook/static/8285.bundle.js +1 -1
- notebook/static/8471.bundle.js +1 -1
- notebook/static/8579.bundle.js +1 -1
- notebook/static/8633.bundle.js +1 -1
- notebook/static/8635.bundle.js +41 -0
- notebook/static/8771.bundle.js +1 -1
- notebook/static/8781.bundle.js +1 -1
- notebook/static/8875.bundle.js +1 -1
- notebook/static/8907.bundle.js +1 -1
- notebook/static/8928.bundle.js +1 -1
- notebook/static/8929.bundle.js +1 -1
- notebook/static/893.bundle.js +1 -1
- notebook/static/901.bundle.js +1 -1
- notebook/static/9068.bundle.js +1 -1
- notebook/static/9136.bundle.js +1 -1
- notebook/static/9151.bundle.js +1 -1
- notebook/static/9161.bundle.js +1 -1
- notebook/static/9268.bundle.js +1 -1
- notebook/static/9335.bundle.js +1 -1
- notebook/static/9341.bundle.js +1 -1
- notebook/static/9357.bundle.js +1 -0
- notebook/static/9380.bundle.js +1 -1
- notebook/static/9605.bundle.js +1 -1
- notebook/static/9638.bundle.js +1 -1
- notebook/static/9672.bundle.js +352 -0
- notebook/static/9680.bundle.js +1 -1
- notebook/static/9685.bundle.js +1 -1
- notebook/static/9752.bundle.js +1 -1
- notebook/static/9799.bundle.js +1 -0
- notebook/static/9821.bundle.js +1 -1
- notebook/static/9852.bundle.js +1 -1
- notebook/static/bundle.js +1 -1
- notebook/static/third-party-licenses.json +124 -130
- notebook/templates/consoles.html +1 -1
- notebook/templates/edit.html +1 -1
- notebook/templates/error.html +1 -1
- notebook/templates/notebooks.html +1 -1
- notebook/templates/terminals.html +1 -1
- notebook/templates/tree.html +1 -1
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/package.json.orig +17 -17
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/documentsearch-extension/package.json.orig +5 -5
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/package.json.orig +6 -6
- notebook-7.3.0b1.data/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/full-width-notebook.json +27 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/package.json.orig +11 -11
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/package.json.orig +18 -18
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json +6 -1
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/package.json +13 -13
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/package.json.orig +12 -12
- notebook-7.3.0b1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/466.16ad54314911066edf9c.js +1 -0
- notebook-7.3.0b1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.963a302c93b1c86218b2.js +1 -0
- notebook-7.3.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.b94c92715d631efb4a8f.js → notebook-7.3.0b1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.2635b6a9fd871a610e32.js +1 -1
- notebook-7.3.0b1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.c690bcb5ab5c38794e5d.js +1 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/third-party-licenses.json +2 -2
- {notebook-7.3.0a1.dist-info → notebook-7.3.0b1.dist-info}/METADATA +2 -2
- {notebook-7.3.0a1.dist-info → notebook-7.3.0b1.dist-info}/RECORD +216 -223
- notebook/static/1226.bundle.js +0 -1
- notebook/static/1750.bundle.js +0 -1
- notebook/static/1884.bundle.js +0 -386
- notebook/static/4045.bundle.js +0 -1
- notebook/static/4434.bundle.js +0 -1
- notebook/static/5018.bundle.js +0 -1
- notebook/static/5712.bundle.js +0 -1
- notebook/static/5921.bundle.js +0 -1
- notebook/static/6164.bundle.js +0 -1
- notebook/static/6318.bundle.js +0 -1
- notebook/static/6619.bundle.js +0 -1
- notebook/static/6898.bundle.js +0 -1
- notebook/static/7506.bundle.js +0 -703
- notebook/static/7579.bundle.js +0 -1
- notebook/static/8054.bundle.js +0 -1
- notebook/static/8647.bundle.js +0 -1
- notebook/static/8723.bundle.js +0 -1
- notebook/static/911.bundle.js +0 -1
- notebook/static/9734.bundle.js +0 -1
- notebook/static/9906.bundle.js +0 -1
- notebook-7.3.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.45e1d3167710e94c3d26.js +0 -1
- notebook-7.3.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/600.25341cef1598f2727482.js +0 -1
- notebook-7.3.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.8ca922abea871b34db72.js +0 -1
- /notebook/static/{7506.bundle.js.LICENSE.txt → 4242.bundle.js.LICENSE.txt} +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/etc/jupyter/jupyter_server_config.d/notebook.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/applications/jupyter-notebook.desktop +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/icons/hicolor/scalable/apps/notebook.svg +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/menus.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/pages.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/title.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/zen.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/open.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/checkpoints.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/edit-notebook-metadata.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/kernel-logo.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/interface-switcher.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/launch-tree.json +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.eae3497dd223d842d198.js +0 -0
- {notebook-7.3.0a1.data → notebook-7.3.0b1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/style.js +0 -0
- {notebook-7.3.0a1.dist-info → notebook-7.3.0b1.dist-info}/WHEEL +0 -0
- {notebook-7.3.0a1.dist-info → notebook-7.3.0b1.dist-info}/entry_points.txt +0 -0
- {notebook-7.3.0a1.dist-info → notebook-7.3.0b1.dist-info}/licenses/LICENSE +0 -0
notebook/static/545.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[545],{60545:(e,n,t)=>{t.r(n),t.d(n,{CommandIDs:()=>w,default:()=>f});var a,o=t(27961),l=t(15465),r=t(44548),s=t(2646),d=t(60211),i=t(87844),c=t(25291),u=t(12668),m=t(33625),p=t(20998),h=t(63485),_=t(94624),g=t(73684);!function(e){e.openRecent="recentmenu:open-recent",e.reopenLast="recentmenu:reopen-last",e.clearRecents="docmanager:clear-recents"}(a||(a={}));class b extends h.Menu{constructor(e){super(e),this._manager=e.manager,this._showDirectories=e.showDirectories,this.updateItems(),this._manager.changed.connect(this.updateItems,this)}async _validateRecentlyOpened(){Promise.all(this._manager.recentlyOpened.map((e=>this._manager.validate(e))))}onBeforeAttach(e){const n=new p.PromiseDelegate;setTimeout((()=>{n.reject("Recents validation timed out.")}),550),Promise.race([n.promise,this._validateRecentlyOpened()]).then((()=>{this.update()})).catch((()=>{})),super.onBeforeAttach(e)}updateItems(){this.clearItems(),this.addItem({command:a.reopenLast}),this.addItem({type:"separator"});let e=!0,n=!1;this._manager.recentlyOpened.sort(((e,n)=>e.contentType===n.contentType?0:"directory"!==e.contentType?1:-1)).forEach((t=>{if("directory"===t.contentType){if(!this._showDirectories)return;n=!0}else e&&n&&(e=!1,this.addItem({type:"separator"}));this.addItem({command:a.openRecent,args:{recent:t}})})),this.addItem({type:"separator"}),this.addItem({command:a.clearRecents})}}const v={id:"@jupyterlab/mainmenu-extension:recents",description:"Adds sub-menu for opening recent documents to the File section of the main menu.",autoStart:!0,requires:[_.IRecentsManager,s.IMainMenu],optional:[g.IFileBrowserCommands,c.ITranslator],activate:(e,n,t,o,s)=>{const{commands:d}=e,i=(null!=s?s:c.nullTranslator).load("jupyterlab"),u=null!==o,m=async e=>{const t=await n.validate(e);return t||await(0,l.showErrorMessage)(i.__("Could Not Open Recent"),i.__("%1 is no longer valid and will be removed from the list",e.path)),t};d.addCommand(a.openRecent,{execute:async e=>{const n=e.recent,t=""===n.path?"/":n.path;await m(n)&&(o&&"directory"===n.contentType?await d.execute(o.openPath,{path:t}):await d.execute("docmanager:open",{path:t,factory:n.factory}))},label:e=>{const n=e.recent;return n?r.PathExt.joinWithLeadingSlash(n.root,n.path):i.__("Open a Recent Document (given by `recent` argument)")},isEnabled:e=>n.recentlyOpened.includes(e.recent)}),e.commands.addCommand(a.reopenLast,{execute:async()=>{const e=n.recentlyClosed[0];e&&await m(e)&&(await d.execute("docmanager:open",{path:e.path,factory:e.factory}),n.removeRecent(e,"closed"))},label:()=>{const e=n.recentlyClosed[0];return e?i.__("Reopen %1",e.path):i.__("Reopen Closed Document")},isEnabled:()=>0!==n.recentlyClosed.length,caption:i.__("Reopen recently closed file or notebook.")});const p=new b({commands:d,manager:n,showDirectories:u});p.title.label=i.__("Open Recent"),t.fileMenu.addItem({type:"submenu",submenu:p,rank:1})}},C="@jupyterlab/mainmenu-extension:plugin";var w;!function(e){e.openEdit="editmenu:open",e.undo="editmenu:undo",e.redo="editmenu:redo",e.clearCurrent="editmenu:clear-current",e.clearAll="editmenu:clear-all",e.find="editmenu:find",e.goToLine="editmenu:go-to-line",e.openFile="filemenu:open",e.closeAndCleanup="filemenu:close-and-cleanup",e.createConsole="filemenu:create-console",e.shutdown="filemenu:shutdown",e.logout="filemenu:logout",e.openKernel="kernelmenu:open",e.interruptKernel="kernelmenu:interrupt",e.reconnectToKernel="kernelmenu:reconnect-to-kernel",e.restartKernel="kernelmenu:restart",e.restartKernelAndClear="kernelmenu:restart-and-clear",e.changeKernel="kernelmenu:change",e.shutdownKernel="kernelmenu:shutdown",e.shutdownAllKernels="kernelmenu:shutdownAll",e.openView="viewmenu:open",e.wordWrap="viewmenu:word-wrap",e.lineNumbering="viewmenu:line-numbering",e.matchBrackets="viewmenu:match-brackets",e.openRun="runmenu:open",e.run="runmenu:run",e.runAll="runmenu:run-all",e.restartAndRunAll="runmenu:restart-and-run-all",e.runAbove="runmenu:run-above",e.runBelow="runmenu:run-below",e.openTabs="tabsmenu:open",e.activateById="tabsmenu:activate-by-id",e.activatePreviouslyUsedTab="tabsmenu:activate-previously-used-tab",e.openSettings="settingsmenu:open",e.openHelp="helpmenu:open",e.getKernel="helpmenu:get-kernel",e.openFirst="mainmenu:open-first"}(w||(w={}));const f=[{id:C,description:"Adds and provides the application main menu.",requires:[o.IRouter,c.ITranslator],optional:[l.ICommandPalette,o.ILabShell,i.ISettingRegistry],provides:s.IMainMenu,activate:async(e,n,t,a,i,c)=>{const{commands:p}=e,_=t.load("jupyterlab"),g=new s.MainMenu(p);g.id="jp-MainMenu",g.addClass("jp-scrollbar-tiny"),c&&(await y.loadSettingsMenu(c,(e=>{g.addMenu(e,!1,{rank:e.rank})}),(e=>s.MainMenu.generateMenu(p,e,_)),t),g.update());const b=r.PageConfig.getOption("quitButton").toLowerCase();g.fileMenu.quitEntry="true"===b,function(e,n,t){const{commands:a,shell:l}=e;(0,o.addSemanticCommand)({id:w.undo,commands:a,shell:l,semanticCommands:n.undoers.undo,default:{label:t.__("Undo")},trans:t}),(0,o.addSemanticCommand)({id:w.redo,commands:a,shell:l,semanticCommands:n.undoers.redo,default:{label:t.__("Redo")},trans:t}),(0,o.addSemanticCommand)({id:w.clearCurrent,commands:a,shell:l,semanticCommands:n.clearers.clearCurrent,default:{label:t.__("Clear")},trans:t}),(0,o.addSemanticCommand)({id:w.clearAll,commands:a,shell:l,semanticCommands:n.clearers.clearAll,default:{label:t.__("Clear All")},trans:t}),(0,o.addSemanticCommand)({id:w.goToLine,commands:a,shell:l,semanticCommands:n.goToLiners,default:{label:t.__("Go to Line…")},trans:t})}(e,g.editMenu,_),function(e,n,t,a){const{commands:s,shell:i}=e;(0,o.addSemanticCommand)({id:w.closeAndCleanup,commands:s,shell:i,semanticCommands:n.closeAndCleaners,default:{execute:"application:close",label:a.__("Close and Shut Down"),isEnabled:!0},overrides:{isEnabled:()=>!!e.shell.currentWidget&&!!e.shell.currentWidget.title.closable},trans:a}),(0,o.addSemanticCommand)({id:w.createConsole,commands:s,shell:i,semanticCommands:n.consoleCreators,default:{label:a.__("New Console for Activity")},trans:a}),s.addCommand(w.shutdown,{label:a.__("Shut Down"),caption:a.__("Shut down %1",e.name),isVisible:()=>n.quitEntry,isEnabled:()=>n.quitEntry,execute:()=>(0,l.showDialog)({title:a.__("Shutdown confirmation"),body:a.__("Please confirm you want to shut down %1.",e.name),buttons:[l.Dialog.cancelButton(),l.Dialog.warnButton({label:a.__("Shut Down")})]}).then((async n=>{if(n.button.accept){const n=d.ServerConnection.makeSettings(),t=r.URLExt.join(n.baseUrl,"api/shutdown");try{await Promise.all([e.serviceManager.sessions.shutdownAll(),e.serviceManager.terminals.shutdownAll()])}catch(e){console.log(`Failed to shutdown sessions and terminals: ${e}`)}return d.ServerConnection.makeRequest(t,{method:"POST"},n).then((n=>{if(!n.ok)throw new d.ServerConnection.ResponseError(n);{const n=document.createElement("div"),t=document.createElement("p");t.textContent=a.__("You have shut down the Jupyter server. You can now close this tab.");const o=document.createElement("p");o.textContent=a.__("To use %1 again, you will need to relaunch it.",e.name),n.appendChild(t),n.appendChild(o),(0,l.showDialog)({title:a.__("Server stopped"),body:new h.Widget({node:n}),buttons:[]}),window.close()}})).catch((e=>{throw new d.ServerConnection.NetworkError(e)}))}}))}),s.addCommand(w.logout,{label:a.__("Log Out"),caption:a.__("Log out of %1",e.name),isVisible:()=>n.quitEntry,isEnabled:()=>n.quitEntry,execute:()=>{t.navigate("/logout",{hard:!0})}})}(e,g.fileMenu,n,_),function(e,n,t){const{commands:a,shell:r}=e;(0,o.addSemanticCommand)({id:w.interruptKernel,commands:a,shell:r,semanticCommands:n.kernelUsers.interruptKernel,default:{label:t.__("Interrupt Kernel"),caption:t.__("Interrupt the kernel")},overrides:{icon:e=>e.toolbar?u.stopIcon:void 0},trans:t}),(0,o.addSemanticCommand)({id:w.reconnectToKernel,commands:a,shell:r,semanticCommands:n.kernelUsers.reconnectToKernel,default:{label:t.__("Reconnect to Kernel")},trans:t}),(0,o.addSemanticCommand)({id:w.restartKernel,commands:a,shell:r,semanticCommands:n.kernelUsers.restartKernel,default:{label:t.__("Restart Kernel…"),caption:t.__("Restart the kernel")},overrides:{icon:e=>e.toolbar?u.refreshIcon:void 0},trans:t}),(0,o.addSemanticCommand)({id:w.restartKernelAndClear,commands:a,shell:r,semanticCommands:[n.kernelUsers.restartKernel,n.kernelUsers.clearWidget],default:{label:t.__("Restart Kernel and Clear…")},trans:t}),(0,o.addSemanticCommand)({id:w.changeKernel,commands:a,shell:r,semanticCommands:n.kernelUsers.changeKernel,default:{label:t.__("Change Kernel…")},trans:t}),(0,o.addSemanticCommand)({id:w.shutdownKernel,commands:a,shell:r,semanticCommands:n.kernelUsers.shutdownKernel,default:{label:t.__("Shut Down Kernel"),caption:t.__("Shut down kernel")},trans:t}),a.addCommand(w.shutdownAllKernels,{label:t.__("Shut Down All Kernels…"),isEnabled:()=>!e.serviceManager.sessions.running().next().done,execute:()=>(0,l.showDialog)({title:t.__("Shut Down All?"),body:t.__("Shut down all kernels?"),buttons:[l.Dialog.cancelButton({label:t.__("Dismiss")}),l.Dialog.warnButton({label:t.__("Shut Down All")})]}).then((n=>{if(n.button.accept)return e.serviceManager.sessions.shutdownAll()}))})}(e,g.kernelMenu,_),function(e,n,t){const{commands:a,shell:l}=e;(0,o.addSemanticCommand)({id:w.run,commands:a,shell:l,semanticCommands:n.codeRunners.run,default:{label:t.__("Run Selected"),caption:t.__("Run Selected")},overrides:{icon:e=>e.toolbar?u.runIcon:void 0},trans:t}),(0,o.addSemanticCommand)({id:w.runAll,commands:a,shell:l,semanticCommands:n.codeRunners.runAll,default:{label:t.__("Run All"),caption:t.__("Run All")},trans:t}),(0,o.addSemanticCommand)({id:w.restartAndRunAll,commands:a,shell:l,semanticCommands:[n.codeRunners.restart,n.codeRunners.runAll],default:{label:t.__("Restart Kernel and Run All"),caption:t.__("Restart Kernel and Run All")},overrides:{icon:e=>e.toolbar?u.fastForwardIcon:void 0},trans:t})}(e,g.runMenu,_),function(e,n,t){const{commands:a,shell:l}=e;(0,o.addSemanticCommand)({id:w.lineNumbering,commands:a,shell:l,semanticCommands:n.editorViewers.toggleLineNumbers,default:{label:t.__("Show Line Numbers")},trans:t}),(0,o.addSemanticCommand)({id:w.matchBrackets,commands:a,shell:l,semanticCommands:n.editorViewers.toggleMatchBrackets,default:{label:t.__("Match Brackets")},trans:t}),(0,o.addSemanticCommand)({id:w.wordWrap,commands:a,shell:l,semanticCommands:n.editorViewers.toggleWordWrap,default:{label:t.__("Wrap Words")},trans:t})}(e,g.viewMenu,_),function(e,n,t){const{commands:a,shell:l}=e;(0,o.addSemanticCommand)({id:w.getKernel,commands:a,shell:l,semanticCommands:n.getKernel,default:{label:t.__("Get Kernel"),isVisible:!1},trans:t})}(e,g.helpMenu,_),i&&function(e,n,t,a){const o=e.commands,l=[];let r;o.addCommand(w.activateById,{label:n=>{if(void 0===n.id)return a.__("Activate a widget by its `id`.");const t=n.id||"",o=(0,m.find)(e.shell.widgets("main"),(e=>e.id===t));return o&&o.title.label||""},isToggled:n=>{const t=n.id||"";return!!e.shell.currentWidget&&e.shell.currentWidget.id===t},execute:n=>e.shell.activateById(n.id||"")});let s="";o.addCommand(w.activatePreviouslyUsedTab,{label:a.__("Activate Previously Used Tab"),isEnabled:()=>!!s,execute:()=>o.execute(w.activateById,{id:s})}),t&&e.restored.then((()=>{const a=()=>{r&&!r.isDisposed&&r.dispose(),l.length=0;let t=!1;for(const n of e.shell.widgets("main"))n.id===s&&(t=!0),l.push({command:w.activateById,args:{id:n.id}});r=n.addGroup(l,1),s=t?s:""};a(),t.layoutModified.connect((()=>{a()})),t.currentChanged.connect(((e,n)=>{const t=n.oldValue;t&&(s=t.id)}))}))}(e,g.tabsMenu,i,_);const v=e=>{g.activeMenu=e,g.openActiveMenu()};return p.addCommand(w.openEdit,{label:_.__("Open Edit Menu"),execute:()=>v(g.editMenu)}),p.addCommand(w.openFile,{label:_.__("Open File Menu"),execute:()=>v(g.fileMenu)}),p.addCommand(w.openKernel,{label:_.__("Open Kernel Menu"),execute:()=>v(g.kernelMenu)}),p.addCommand(w.openRun,{label:_.__("Open Run Menu"),execute:()=>v(g.runMenu)}),p.addCommand(w.openView,{label:_.__("Open View Menu"),execute:()=>v(g.viewMenu)}),p.addCommand(w.openSettings,{label:_.__("Open Settings Menu"),execute:()=>v(g.settingsMenu)}),p.addCommand(w.openTabs,{label:_.__("Open Tabs Menu"),execute:()=>v(g.tabsMenu)}),p.addCommand(w.openHelp,{label:_.__("Open Help Menu"),execute:()=>v(g.helpMenu)}),p.addCommand(w.openFirst,{label:_.__("Open First Menu"),execute:()=>{g.activeIndex=0,g.openActiveMenu()}}),a&&(a.addItem({command:w.shutdown,category:_.__("Main Area")}),a.addItem({command:w.logout,category:_.__("Main Area")}),a.addItem({command:w.shutdownAllKernels,category:_.__("Kernel Operations")}),a.addItem({command:w.activatePreviouslyUsedTab,category:_.__("Main Area")})),e.shell.add(g,"menu",{rank:100}),g}},v];var y;!function(e){async function n(e){(await(0,l.showDialog)({title:e.__("Information"),body:e.__("Menu customization has changed. You will need to reload JupyterLab to see the changes."),buttons:[l.Dialog.cancelButton(),l.Dialog.okButton({label:e.__("Reload")})]})).button.accept&&location.reload()}e.loadSettingsMenu=async function(e,t,a,o){var r;const s=o.load("jupyterlab");let d=null,c={};function u(n){var t,a;c={};const o=Object.keys(e.plugins).map((n=>{var t,a;const o=null!==(a=null===(t=e.plugins[n].schema["jupyter.lab.menus"])||void 0===t?void 0:t.main)&&void 0!==a?a:[];return c[n]=o,o})).concat([null!==(a=null===(t=n["jupyter.lab.menus"])||void 0===t?void 0:t.main)&&void 0!==a?a:[]]).reduceRight(((e,n)=>i.SettingRegistry.reconcileMenus(e,n,!0)),n.properties.menus.default);n.properties.menus.default=i.SettingRegistry.reconcileMenus(o,n.properties.menus.default,!0).sort(((e,n)=>{var t,a;return(null!==(t=e.rank)&&void 0!==t?t:1/0)-(null!==(a=n.rank)&&void 0!==a?a:1/0)}))}e.transform(C,{compose:e=>{var n,t,a,o;d||(d=p.JSONExt.deepCopy(e.schema),u(d));const l=null!==(a=null===(t=null===(n=d.properties)||void 0===n?void 0:n.menus)||void 0===t?void 0:t.default)&&void 0!==a?a:[],r={...e.data.user,menus:null!==(o=e.data.user.menus)&&void 0!==o?o:[]},s={...e.data.composite,menus:i.SettingRegistry.reconcileMenus(l,r.menus)};return e.data={composite:s,user:r},e},fetch:e=>(d||(d=p.JSONExt.deepCopy(e.schema),u(d)),{data:e.data,id:e.id,raw:e.raw,schema:d,version:e.version})});const m=await e.load(C),h=null!==(r=p.JSONExt.deepCopy(m.composite.menus))&&void 0!==r?r:[],_=new Array;l.MenuFactory.createMenus(h.filter((e=>!e.disabled)).map((e=>{var n;return{...e,items:i.SettingRegistry.filterDisabledItems(null!==(n=e.items)&&void 0!==n?n:[])}})),a).forEach((e=>{_.push(e),t(e)})),m.changed.connect((()=>{var e;const t=null!==(e=m.composite.menus)&&void 0!==e?e:[];p.JSONExt.deepEqual(h,t)||n(s)})),e.pluginChanged.connect((async(o,r)=>{var d,u,m;if(r!==C){const o=null!==(d=c[r])&&void 0!==d?d:[],g=null!==(m=null===(u=e.plugins[r].schema["jupyter.lab.menus"])||void 0===u?void 0:u.main)&&void 0!==m?m:[];if(!p.JSONExt.deepEqual(o,g))if(c[r])await n(s);else{c[r]=p.JSONExt.deepCopy(g);const e=i.SettingRegistry.reconcileMenus(g,h,!1,!1).filter((e=>!e.disabled)).map((e=>{var n;return{...e,items:i.SettingRegistry.filterDisabledItems(null!==(n=e.items)&&void 0!==n?n:[])}}));l.MenuFactory.updateMenus(_,e,a).forEach((e=>{t(e)}))}}}))}}(y||(y={}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[545],{60545:(e,n,t)=>{t.r(n),t.d(n,{CommandIDs:()=>C,default:()=>y});var a,o=t(84241),l=t(20911),r=t(77075),s=t(68567),d=t(68086),i=t(68878),c=t(66649),u=t(7258),m=t(14931),p=t(21961),h=t(2260),_=t(20780),g=t(90537);!function(e){e.openRecent="recentmenu:open-recent",e.reopenLast="recentmenu:reopen-last",e.clearRecents="docmanager:clear-recents"}(a||(a={}));class b extends h.Menu{constructor(e){super(e),this._manager=e.manager,this._showDirectories=e.showDirectories,this.updateItems(),this._manager.changed.connect(this.updateItems,this)}async _validateRecentlyOpened(){Promise.all(this._manager.recentlyOpened.map((e=>this._manager.validate(e))))}onBeforeAttach(e){const n=new p.PromiseDelegate;setTimeout((()=>{n.reject("Recents validation timed out.")}),550),Promise.race([n.promise,this._validateRecentlyOpened()]).then((()=>{this.update()})).catch((()=>{})),super.onBeforeAttach(e)}updateItems(){this.clearItems(),this.addItem({command:a.reopenLast}),this.addItem({type:"separator"});let e=!0,n=!1;this._manager.recentlyOpened.sort(((e,n)=>e.contentType===n.contentType?0:"directory"!==e.contentType?1:-1)).forEach((t=>{if("directory"===t.contentType){if(!this._showDirectories)return;n=!0}else e&&n&&(e=!1,this.addItem({type:"separator"}));this.addItem({command:a.openRecent,args:{recent:t}})})),this.addItem({type:"separator"}),this.addItem({command:a.clearRecents})}}const v={id:"@jupyterlab/mainmenu-extension:recents",description:"Adds sub-menu for opening recent documents to the File section of the main menu.",autoStart:!0,requires:[_.IRecentsManager,s.IMainMenu],optional:[g.IFileBrowserCommands,c.ITranslator],activate:(e,n,t,o,s)=>{const{commands:d}=e,i=(null!=s?s:c.nullTranslator).load("jupyterlab"),u=null!==o,m=async e=>{const t=await n.validate(e);return t||await(0,l.showErrorMessage)(i.__("Could Not Open Recent"),i.__("%1 is no longer valid and will be removed from the list",e.path)),t};d.addCommand(a.openRecent,{execute:async e=>{const n=e.recent,t=""===n.path?"/":n.path;await m(n)&&(o&&"directory"===n.contentType?await d.execute(o.openPath,{path:t}):await d.execute("docmanager:open",{path:t,factory:n.factory}))},label:e=>{const n=e.recent;return n?r.PathExt.joinWithLeadingSlash(n.root,n.path):i.__("Open a Recent Document (given by `recent` argument)")},isEnabled:e=>n.recentlyOpened.includes(e.recent)}),e.commands.addCommand(a.reopenLast,{execute:async()=>{const e=n.recentlyClosed[0];e&&await m(e)&&(await d.execute("docmanager:open",{path:e.path,factory:e.factory}),n.removeRecent(e,"closed"))},label:()=>{const e=n.recentlyClosed[0];return e?i.__("Reopen %1",e.path):i.__("Reopen Closed Document")},isEnabled:()=>0!==n.recentlyClosed.length,caption:i.__("Reopen recently closed file or notebook.")});const p=new b({commands:d,manager:n,showDirectories:u});p.title.label=i.__("Open Recent"),t.fileMenu.addItem({type:"submenu",submenu:p,rank:1})}},w="@jupyterlab/mainmenu-extension:plugin";var C;!function(e){e.openEdit="editmenu:open",e.undo="editmenu:undo",e.redo="editmenu:redo",e.clearCurrent="editmenu:clear-current",e.clearAll="editmenu:clear-all",e.find="editmenu:find",e.goToLine="editmenu:go-to-line",e.openFile="filemenu:open",e.closeAndCleanup="filemenu:close-and-cleanup",e.createConsole="filemenu:create-console",e.shutdown="filemenu:shutdown",e.logout="filemenu:logout",e.openKernel="kernelmenu:open",e.interruptKernel="kernelmenu:interrupt",e.reconnectToKernel="kernelmenu:reconnect-to-kernel",e.restartKernel="kernelmenu:restart",e.restartKernelAndClear="kernelmenu:restart-and-clear",e.changeKernel="kernelmenu:change",e.shutdownKernel="kernelmenu:shutdown",e.shutdownAllKernels="kernelmenu:shutdownAll",e.openView="viewmenu:open",e.wordWrap="viewmenu:word-wrap",e.lineNumbering="viewmenu:line-numbering",e.matchBrackets="viewmenu:match-brackets",e.openRun="runmenu:open",e.run="runmenu:run",e.runAll="runmenu:run-all",e.restartAndRunAll="runmenu:restart-and-run-all",e.runAbove="runmenu:run-above",e.runBelow="runmenu:run-below",e.openTabs="tabsmenu:open",e.activateById="tabsmenu:activate-by-id",e.activatePreviouslyUsedTab="tabsmenu:activate-previously-used-tab",e.openSettings="settingsmenu:open",e.openHelp="helpmenu:open",e.getKernel="helpmenu:get-kernel",e.openFirst="mainmenu:open-first"}(C||(C={}));const y=[{id:w,description:"Adds and provides the application main menu.",requires:[o.IRouter,c.ITranslator],optional:[l.ICommandPalette,o.ILabShell,i.ISettingRegistry],provides:s.IMainMenu,activate:async(e,n,t,a,i,c)=>{const{commands:p}=e,_=t.load("jupyterlab"),g=new s.MainMenu(p);g.id="jp-MainMenu",g.addClass("jp-scrollbar-tiny"),c&&(await f.loadSettingsMenu(c,(e=>{g.addMenu(e,!1,{rank:e.rank})}),(e=>s.MainMenu.generateMenu(p,e,_)),t),g.update());const b=r.PageConfig.getOption("quitButton").toLowerCase();g.fileMenu.quitEntry="true"===b,function(e,n,t){const{commands:a,shell:l}=e;(0,o.addSemanticCommand)({id:C.undo,commands:a,shell:l,semanticCommands:n.undoers.undo,default:{label:t.__("Undo")},trans:t}),(0,o.addSemanticCommand)({id:C.redo,commands:a,shell:l,semanticCommands:n.undoers.redo,default:{label:t.__("Redo")},trans:t}),(0,o.addSemanticCommand)({id:C.clearCurrent,commands:a,shell:l,semanticCommands:n.clearers.clearCurrent,default:{label:t.__("Clear")},trans:t}),(0,o.addSemanticCommand)({id:C.clearAll,commands:a,shell:l,semanticCommands:n.clearers.clearAll,default:{label:t.__("Clear All")},trans:t}),(0,o.addSemanticCommand)({id:C.goToLine,commands:a,shell:l,semanticCommands:n.goToLiners,default:{label:t.__("Go to Line…")},trans:t})}(e,g.editMenu,_),function(e,n,t,a){const{commands:s,shell:i}=e;(0,o.addSemanticCommand)({id:C.closeAndCleanup,commands:s,shell:i,semanticCommands:n.closeAndCleaners,default:{execute:"application:close",label:a.__("Close and Shut Down"),isEnabled:!0},overrides:{isEnabled:()=>!!e.shell.currentWidget&&!!e.shell.currentWidget.title.closable},trans:a}),(0,o.addSemanticCommand)({id:C.createConsole,commands:s,shell:i,semanticCommands:n.consoleCreators,default:{label:a.__("New Console for Activity")},trans:a}),s.addCommand(C.shutdown,{label:a.__("Shut Down"),caption:a.__("Shut down %1",e.name),isVisible:()=>n.quitEntry,isEnabled:()=>n.quitEntry,execute:()=>(0,l.showDialog)({title:a.__("Shutdown confirmation"),body:a.__("Please confirm you want to shut down %1.",e.name),buttons:[l.Dialog.cancelButton(),l.Dialog.warnButton({label:a.__("Shut Down")})]}).then((async n=>{if(n.button.accept){const n=d.ServerConnection.makeSettings(),t=r.URLExt.join(n.baseUrl,"api/shutdown");try{await Promise.all([e.serviceManager.sessions.shutdownAll(),e.serviceManager.terminals.shutdownAll()])}catch(e){console.log(`Failed to shutdown sessions and terminals: ${e}`)}return d.ServerConnection.makeRequest(t,{method:"POST"},n).then((n=>{if(!n.ok)throw new d.ServerConnection.ResponseError(n);{const n=document.createElement("div"),t=document.createElement("p");t.textContent=a.__("You have shut down the Jupyter server. You can now close this tab.");const o=document.createElement("p");o.textContent=a.__("To use %1 again, you will need to relaunch it.",e.name),n.appendChild(t),n.appendChild(o),(0,l.showDialog)({title:a.__("Server stopped"),body:new h.Widget({node:n}),buttons:[]}),window.close()}})).catch((e=>{throw new d.ServerConnection.NetworkError(e)}))}}))}),s.addCommand(C.logout,{label:a.__("Log Out"),caption:a.__("Log out of %1",e.name),isVisible:()=>n.quitEntry,isEnabled:()=>n.quitEntry,execute:()=>{t.navigate("/logout",{hard:!0})}})}(e,g.fileMenu,n,_),function(e,n,t){const{commands:a,shell:r}=e;(0,o.addSemanticCommand)({id:C.interruptKernel,commands:a,shell:r,semanticCommands:n.kernelUsers.interruptKernel,default:{label:t.__("Interrupt Kernel"),caption:t.__("Interrupt the kernel")},overrides:{icon:e=>e.toolbar?u.stopIcon:void 0},trans:t}),(0,o.addSemanticCommand)({id:C.reconnectToKernel,commands:a,shell:r,semanticCommands:n.kernelUsers.reconnectToKernel,default:{label:t.__("Reconnect to Kernel")},trans:t}),(0,o.addSemanticCommand)({id:C.restartKernel,commands:a,shell:r,semanticCommands:n.kernelUsers.restartKernel,default:{label:t.__("Restart Kernel…"),caption:t.__("Restart the kernel")},overrides:{icon:e=>e.toolbar?u.refreshIcon:void 0},trans:t}),(0,o.addSemanticCommand)({id:C.restartKernelAndClear,commands:a,shell:r,semanticCommands:[n.kernelUsers.restartKernel,n.kernelUsers.clearWidget],default:{label:t.__("Restart Kernel and Clear…")},trans:t}),(0,o.addSemanticCommand)({id:C.changeKernel,commands:a,shell:r,semanticCommands:n.kernelUsers.changeKernel,default:{label:t.__("Change Kernel…")},trans:t}),(0,o.addSemanticCommand)({id:C.shutdownKernel,commands:a,shell:r,semanticCommands:n.kernelUsers.shutdownKernel,default:{label:t.__("Shut Down Kernel"),caption:t.__("Shut down kernel")},trans:t}),a.addCommand(C.shutdownAllKernels,{label:t.__("Shut Down All Kernels…"),isEnabled:()=>!e.serviceManager.sessions.running().next().done,execute:()=>(0,l.showDialog)({title:t.__("Shut Down All?"),body:t._n("Are you sure you want to permanently shut down the running kernel?","Are you sure you want to permanently shut down the %1 running kernels?",e.serviceManager.kernels.runningCount),buttons:[l.Dialog.cancelButton(),l.Dialog.warnButton({label:t.__("Shut Down All")})]}).then((n=>{if(n.button.accept)return e.serviceManager.sessions.shutdownAll()}))})}(e,g.kernelMenu,_),function(e,n,t){const{commands:a,shell:l}=e;(0,o.addSemanticCommand)({id:C.run,commands:a,shell:l,semanticCommands:n.codeRunners.run,default:{label:t.__("Run Selected"),caption:t.__("Run Selected")},overrides:{icon:e=>e.toolbar?u.runIcon:void 0},trans:t}),(0,o.addSemanticCommand)({id:C.runAll,commands:a,shell:l,semanticCommands:n.codeRunners.runAll,default:{label:t.__("Run All"),caption:t.__("Run All")},trans:t}),(0,o.addSemanticCommand)({id:C.restartAndRunAll,commands:a,shell:l,semanticCommands:[n.codeRunners.restart,n.codeRunners.runAll],default:{label:t.__("Restart Kernel and Run All"),caption:t.__("Restart Kernel and Run All")},overrides:{icon:e=>e.toolbar?u.fastForwardIcon:void 0},trans:t})}(e,g.runMenu,_),function(e,n,t){const{commands:a,shell:l}=e;(0,o.addSemanticCommand)({id:C.lineNumbering,commands:a,shell:l,semanticCommands:n.editorViewers.toggleLineNumbers,default:{label:t.__("Show Line Numbers")},trans:t}),(0,o.addSemanticCommand)({id:C.matchBrackets,commands:a,shell:l,semanticCommands:n.editorViewers.toggleMatchBrackets,default:{label:t.__("Match Brackets")},trans:t}),(0,o.addSemanticCommand)({id:C.wordWrap,commands:a,shell:l,semanticCommands:n.editorViewers.toggleWordWrap,default:{label:t.__("Wrap Words")},trans:t})}(e,g.viewMenu,_),function(e,n,t){const{commands:a,shell:l}=e;(0,o.addSemanticCommand)({id:C.getKernel,commands:a,shell:l,semanticCommands:n.getKernel,default:{label:t.__("Get Kernel"),isVisible:!1},trans:t})}(e,g.helpMenu,_),i&&function(e,n,t,a){const o=e.commands,l=[];let r;o.addCommand(C.activateById,{label:n=>{if(void 0===n.id)return a.__("Activate a widget by its `id`.");const t=n.id||"",o=(0,m.find)(e.shell.widgets("main"),(e=>e.id===t));return o&&o.title.label||""},isToggled:n=>{const t=n.id||"";return!!e.shell.currentWidget&&e.shell.currentWidget.id===t},execute:n=>e.shell.activateById(n.id||"")});let s="";o.addCommand(C.activatePreviouslyUsedTab,{label:a.__("Activate Previously Used Tab"),isEnabled:()=>!!s,execute:()=>o.execute(C.activateById,{id:s})}),t&&e.restored.then((()=>{const a=()=>{r&&!r.isDisposed&&r.dispose(),l.length=0;let t=!1;for(const n of e.shell.widgets("main"))n.id===s&&(t=!0),l.push({command:C.activateById,args:{id:n.id}});r=n.addGroup(l,1),s=t?s:""};a(),t.layoutModified.connect((()=>{a()})),t.currentChanged.connect(((e,n)=>{const t=n.oldValue;t&&(s=t.id)}))}))}(e,g.tabsMenu,i,_);const v=e=>{g.activeMenu=e,g.openActiveMenu()};return p.addCommand(C.openEdit,{label:_.__("Open Edit Menu"),execute:()=>v(g.editMenu)}),p.addCommand(C.openFile,{label:_.__("Open File Menu"),execute:()=>v(g.fileMenu)}),p.addCommand(C.openKernel,{label:_.__("Open Kernel Menu"),execute:()=>v(g.kernelMenu)}),p.addCommand(C.openRun,{label:_.__("Open Run Menu"),execute:()=>v(g.runMenu)}),p.addCommand(C.openView,{label:_.__("Open View Menu"),execute:()=>v(g.viewMenu)}),p.addCommand(C.openSettings,{label:_.__("Open Settings Menu"),execute:()=>v(g.settingsMenu)}),p.addCommand(C.openTabs,{label:_.__("Open Tabs Menu"),execute:()=>v(g.tabsMenu)}),p.addCommand(C.openHelp,{label:_.__("Open Help Menu"),execute:()=>v(g.helpMenu)}),p.addCommand(C.openFirst,{label:_.__("Open First Menu"),execute:()=>{g.activeIndex=0,g.openActiveMenu()}}),a&&(a.addItem({command:C.shutdown,category:_.__("Main Area")}),a.addItem({command:C.logout,category:_.__("Main Area")}),a.addItem({command:C.shutdownAllKernels,category:_.__("Kernel Operations")}),a.addItem({command:C.activatePreviouslyUsedTab,category:_.__("Main Area")})),e.shell.add(g,"menu",{rank:100}),g}},v];var f;!function(e){async function n(e){(await(0,l.showDialog)({title:e.__("Information"),body:e.__("Menu customization has changed. You will need to reload JupyterLab to see the changes."),buttons:[l.Dialog.cancelButton(),l.Dialog.okButton({label:e.__("Reload")})]})).button.accept&&location.reload()}e.loadSettingsMenu=async function(e,t,a,o){var r;const s=o.load("jupyterlab");let d=null,c={};function u(n){var t,a;c={};const o=Object.keys(e.plugins).map((n=>{var t,a;const o=null!==(a=null===(t=e.plugins[n].schema["jupyter.lab.menus"])||void 0===t?void 0:t.main)&&void 0!==a?a:[];return c[n]=o,o})).concat([null!==(a=null===(t=n["jupyter.lab.menus"])||void 0===t?void 0:t.main)&&void 0!==a?a:[]]).reduceRight(((e,n)=>i.SettingRegistry.reconcileMenus(e,n,!0)),n.properties.menus.default);n.properties.menus.default=i.SettingRegistry.reconcileMenus(o,n.properties.menus.default,!0).sort(((e,n)=>{var t,a;return(null!==(t=e.rank)&&void 0!==t?t:1/0)-(null!==(a=n.rank)&&void 0!==a?a:1/0)}))}e.transform(w,{compose:e=>{var n,t,a,o;d||(d=p.JSONExt.deepCopy(e.schema),u(d));const l=null!==(a=null===(t=null===(n=d.properties)||void 0===n?void 0:n.menus)||void 0===t?void 0:t.default)&&void 0!==a?a:[],r={...e.data.user,menus:null!==(o=e.data.user.menus)&&void 0!==o?o:[]},s={...e.data.composite,menus:i.SettingRegistry.reconcileMenus(l,r.menus)};return e.data={composite:s,user:r},e},fetch:e=>(d||(d=p.JSONExt.deepCopy(e.schema),u(d)),{data:e.data,id:e.id,raw:e.raw,schema:d,version:e.version})});const m=await e.load(w),h=null!==(r=p.JSONExt.deepCopy(m.composite.menus))&&void 0!==r?r:[],_=new Array;l.MenuFactory.createMenus(h.filter((e=>!e.disabled)).map((e=>{var n;return{...e,items:i.SettingRegistry.filterDisabledItems(null!==(n=e.items)&&void 0!==n?n:[])}})),a).forEach((e=>{_.push(e),t(e)})),m.changed.connect((()=>{var e;const t=null!==(e=m.composite.menus)&&void 0!==e?e:[];p.JSONExt.deepEqual(h,t)||n(s)})),e.pluginChanged.connect((async(o,r)=>{var d,u,m;if(r!==w){const o=null!==(d=c[r])&&void 0!==d?d:[],g=null!==(m=null===(u=e.plugins[r].schema["jupyter.lab.menus"])||void 0===u?void 0:u.main)&&void 0!==m?m:[];if(!p.JSONExt.deepEqual(o,g))if(c[r])await n(s);else{c[r]=p.JSONExt.deepCopy(g);const e=i.SettingRegistry.reconcileMenus(g,h,!1,!1).filter((e=>!e.disabled)).map((e=>{var n;return{...e,items:i.SettingRegistry.filterDisabledItems(null!==(n=e.items)&&void 0!==n?n:[])}}));l.MenuFactory.updateMenus(_,e,a).forEach((e=>{t(e)}))}}}))}}(f||(f={}))}}]);
|
notebook/static/5451.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[5451],{65451:(s,e,i)=>{i.r(e),i.d(e,{DisposableDelegate:()=>o,DisposableSet:()=>r,ObservableDisposableDelegate:()=>d,ObservableDisposableSet:()=>n});var t=i(
|
|
1
|
+
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[5451],{65451:(s,e,i)=>{i.r(e),i.d(e,{DisposableDelegate:()=>o,DisposableSet:()=>r,ObservableDisposableDelegate:()=>d,ObservableDisposableSet:()=>n});var t=i(2159);class o{constructor(s){this._fn=s}get isDisposed(){return!this._fn}dispose(){if(!this._fn)return;let s=this._fn;this._fn=null,s()}}class d extends o{constructor(){super(...arguments),this._disposed=new t.Signal(this)}get disposed(){return this._disposed}dispose(){this.isDisposed||(super.dispose(),this._disposed.emit(void 0),t.Signal.clearData(this))}}class r{constructor(){this._isDisposed=!1,this._items=new Set}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,this._items.forEach((s=>{s.dispose()})),this._items.clear())}contains(s){return this._items.has(s)}add(s){this._items.add(s)}remove(s){this._items.delete(s)}clear(){this._items.clear()}}!function(s){s.from=function(e){let i=new s;for(const s of e)i.add(s);return i}}(r||(r={}));class n extends r{constructor(){super(...arguments),this._disposed=new t.Signal(this)}get disposed(){return this._disposed}dispose(){this.isDisposed||(super.dispose(),this._disposed.emit(void 0),t.Signal.clearData(this))}}!function(s){s.from=function(e){let i=new s;for(const s of e)i.add(s);return i}}(n||(n={}))}}]);
|
notebook/static/5573.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[5573],{5573:(e,o,t)=>{t.r(o),t.d(o,{default:()=>P});var n=t(
|
|
1
|
+
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[5573],{5573:(e,o,t)=>{t.r(o),t.d(o,{default:()=>P});var n=t(20911),a=t(77075),s=t(20780),l=t(68567),r=t(70750),i=t(68878),c=t(66649),d=t(20763),u=t(32406),k=t(2260),b=t(78156),g=t.n(b);const p=e=>{const o=e.model;if(!o)return!1;const t=Array.from(o.cells);let n=0,a=0;for(const e of t)"code"===e.type&&(n++,e.trusted&&a++);return a===n},h=({notebook:e,translator:o})=>{const t=o.load("notebook"),[n,a]=(0,b.useState)(p(e)),s=()=>{const o=p(e);a(o)};return(0,b.useEffect)((()=>(e.modelContentChanged.connect(s),e.activeCellChanged.connect(s),s(),()=>{e.modelContentChanged.disconnect(s),e.activeCellChanged.disconnect(s)}))),g().createElement("button",{className:"jp-NotebookTrustedStatus",style:n?{cursor:"help"}:{cursor:"pointer"},onClick:()=>!n&&(async()=>{await r.NotebookActions.trust(e,o),s()})(),title:n?t.__("JavaScript enabled for notebook display"):t.__("JavaScript disabled for notebook display")},n?t.__("Trusted"):t.__("Not Trusted"))};var m;!function(e){e.create=({notebook:e,translator:o})=>n.ReactWidget.create(g().createElement(h,{notebook:e,translator:o}))}(m||(m={}));const C="jp-NotebookKernelStatus-error",f="jp-NotebookKernelStatus-warn",y="jp-NotebookKernelStatus-info",v="jp-NotebookKernelStatus-fade";var N;!function(e){e.openEditNotebookMetadata="notebook:edit-metadata",e.toggleFullWidth="notebook:toggle-full-width"}(N||(N={}));const w={id:"@jupyter-notebook/notebook-extension:checkpoints",description:"A plugin for the checkpoint indicator.",autoStart:!0,requires:[s.IDocumentManager,c.ITranslator],optional:[d.INotebookShell,n.IToolbarWidgetRegistry],activate:(e,o,t,s,l)=>{const{shell:r}=e,i=t.load("notebook"),c=document.createElement("div");l&&l.addFactory("TopBar","checkpoint",(e=>{const o=new k.Widget({node:c});return o.id=n.DOMUtils.createDomID(),o.addClass("jp-NotebookCheckpoint"),o}));const d=async()=>{const e=r.currentWidget;if(!e)return;const t=o.contextForWidget(e);null==t||t.fileChanged.disconnect(d),null==t||t.fileChanged.connect(d);const n=await(null==t?void 0:t.listCheckpoints());if(!n)return;const s=n[n.length-1];c.textContent=i.__("Last Checkpoint: %1",a.Time.formatHuman(new Date(s.last_modified)))};s&&s.currentChanged.connect(d),new u.Poll({auto:!0,factory:()=>d(),frequency:{interval:2e3,backoff:!1},standby:"when-hidden"})}},T={id:"@jupyter-notebook/notebook-extension:close-tab",description:'Add a command to close the browser tab when clicking on "Close and Shut Down".',autoStart:!0,requires:[l.IMainMenu],optional:[c.ITranslator],activate:(e,o,t)=>{const{commands:n}=e,a=(t=null!=t?t:c.nullTranslator).load("notebook"),s="notebook:close-and-halt";n.addCommand(s,{label:a.__("Close and Shut Down Notebook"),execute:async()=>{await n.execute("notebook:shutdown-kernel",{activate:!1}),window.close()}}),o.fileMenu.closeAndCleaners.add({id:s,rank:0})}},S={id:"@jupyter-notebook/notebook-extension:open-tree-tab",description:'Add a command to open a browser tab on the tree view when clicking "Open...".',autoStart:!0,optional:[c.ITranslator],activate:(e,o)=>{const{commands:t}=e,n=(o=null!=o?o:c.nullTranslator).load("notebook");t.addCommand("notebook:open-tree-tab",{label:n.__("Open…"),execute:async()=>{const e=a.URLExt.join(a.PageConfig.getBaseUrl(),"tree");window.open(e)}})}},x={id:"@jupyter-notebook/notebook-extension:full-width-notebook",description:"A plugin to set the notebook to full width.",autoStart:!0,requires:[r.INotebookTracker],optional:[n.ICommandPalette,i.ISettingRegistry,c.ITranslator],activate:(e,o,t,n,a)=>{const s=(null!=a?a:c.nullTranslator).load("notebook");let l=!1;const r=()=>{const e=o.currentWidget;l=!l,e&&e.toggleClass("jp-mod-fullwidth",l)};let i;if(n){const o=n.load(x.id),t=e=>{e.get("fullWidthNotebook").composite!==l&&r()};Promise.all([o,e.restored]).then((([e])=>{i=e,t(e),e.changed.connect((e=>{t(e)}))})).catch((e=>{console.error(e.message)}))}e.commands.addCommand(N.toggleFullWidth,{label:s.__("Enable Full Width Notebook"),execute:()=>{r(),i&&i.set("fullWidthNotebook",l)},isEnabled:()=>null!==o.currentWidget,isToggled:()=>l}),t&&t.addItem({command:N.toggleFullWidth,category:"Notebook Operations"})}},_={id:"@jupyter-notebook/notebook-extension:kernel-logo",description:"The kernel logo plugin.",autoStart:!0,requires:[d.INotebookShell],optional:[n.IToolbarWidgetRegistry],activate:(e,o,t)=>{const{serviceManager:n}=e,a=document.createElement("div"),s=document.createElement("img"),l=async()=>{var e,t,i,c,d;const u=o.currentWidget;if(!(u instanceof r.NotebookPanel))return;a.hasChildNodes()||a.appendChild(s),await u.sessionContext.ready,u.sessionContext.kernelChanged.disconnect(l),u.sessionContext.kernelChanged.connect(l);const k=null!==(i=null===(t=null===(e=u.sessionContext.session)||void 0===e?void 0:e.kernel)||void 0===t?void 0:t.name)&&void 0!==i?i:"",b=null===(d=null===(c=n.kernelspecs)||void 0===c?void 0:c.specs)||void 0===d?void 0:d.kernelspecs[k];if(!b)return void a.childNodes[0].remove();const g=b.resources["logo-64x64"];g?(s.src=g,s.title=b.display_name):a.childNodes[0].remove()};t&&t.addFactory("TopBar","kernelLogo",(e=>{const o=new k.Widget({node:a});return o.addClass("jp-NotebookKernelLogo"),o})),e.started.then((()=>{o.currentChanged.connect(l)}))}},I={id:"@jupyter-notebook/notebook-extension:kernel-status",description:"A plugin to display the kernel status.",autoStart:!0,requires:[d.INotebookShell,c.ITranslator],activate:(e,o,t)=>{const n=t.load("notebook"),s=new k.Widget;s.addClass("jp-NotebookKernelStatus"),e.shell.add(s,"menu",{rank:10010});const l=e=>{const o=e.kernelDisplayStatus;let t=`Kernel ${a.Text.titleCase(o)}`;switch(s.removeClass(C),s.removeClass(f),s.removeClass(y),s.removeClass(v),o){case"busy":case"idle":t="",s.addClass(v);break;case"dead":case"terminating":s.addClass(C);break;case"unknown":s.addClass(f);break;default:s.addClass(y),s.addClass(v)}s.node.textContent=n.__(t)};o.currentChanged.connect((async()=>{const e=o.currentWidget;e instanceof r.NotebookPanel&&e.sessionContext.statusChanged.connect(l)}))}},E={id:"@jupyter-notebook/notebook-extension:scroll-output",description:"A plugin to enable scrolling for outputs by default.",autoStart:!0,requires:[r.INotebookTracker],optional:[i.ISettingRegistry],activate:async(e,o,t)=>{let n=!0;const a=e=>{if(!n)return;const{outputArea:o}=e;if(void 0!==e.model.getMetadata("scrolled"))return;const{node:t}=o,a=t.scrollHeight>1.3*(parseFloat(t.style.fontSize.replace("px",""))||14)*100;e.toggleClass("jp-mod-outputsScrolled",a)},s={},l=e=>{if("code"===e.model.type){const o=e,t=o.model.id;a(o),s[t]&&o.outputArea.model.changed.disconnect(s[t]),s[t]=()=>a(o),o.outputArea.model.changed.connect(s[t])}};if(o.widgetAdded.connect(((e,o)=>{var t;o.sessionContext.ready.then((()=>{o.content.widgets.forEach(l)})),null===(t=o.model)||void 0===t||t.cells.changed.connect(((e,t)=>{o.content.widgets.forEach(l)}))})),t){const o=t.load(E.id),a=e=>{n=e.get("autoScrollOutputs").composite};Promise.all([o,e.restored]).then((([e])=>{a(e),e.changed.connect((e=>{a(e)}))})).catch((e=>{console.error(e.message)}))}}},j={id:"@jupyter-notebook/notebook-extension:notebook-tools",description:"A plugin to add the NotebookTools to the side panel.",autoStart:!0,requires:[d.INotebookShell],optional:[r.INotebookTools],activate:(e,o,t)=>{o.currentChanged.connect((async()=>{o.currentWidget instanceof r.NotebookPanel&&t&&o.add(t,"right",{type:"Property Inspector"})}))}},W={id:"@jupyter-notebook/notebook-extension:tab-icon",description:"A plugin to update the tab icon based on the kernel status.",autoStart:!0,requires:[r.INotebookTracker],activate:(e,o)=>{const t=a.PageConfig.getBaseUrl(),n=a.URLExt.join(t,"static/favicons/favicon-notebook.ico"),s=a.URLExt.join(t,"static/favicons/favicon-busy-1.ico");o.currentChanged.connect((async()=>{const e=o.currentWidget,t=null==e?void 0:e.sessionContext;t&&t.statusChanged.connect((()=>{(e=>{const o=document.querySelector("link[rel*='icon']");switch(e){case"busy":o.href=s;break;case"idle":o.href=n}})(t.kernelDisplayStatus)}))}))}},A={id:"@jupyter-notebook/notebook-extension:trusted",description:"A plugin that adds a Trusted indicator to the menu area.",autoStart:!0,requires:[d.INotebookShell,c.ITranslator],activate:(e,o,t)=>{o.currentChanged.connect((async()=>{const e=o.currentWidget;if(!(e instanceof r.NotebookPanel))return;const n=e.content;await e.context.ready;const a=m.create({notebook:n,translator:t});o.add(a,"menu",{rank:11e3})}))}},P=[w,T,S,{id:"@jupyter-notebook/notebook-extension:edit-notebook-metadata",description:'Add a command to open right sidebar for Editing Notebook Metadata when clicking on "Edit Notebook Metadata" under Edit menu',autoStart:!0,optional:[n.ICommandPalette,c.ITranslator,r.INotebookTools],activate:(e,o,t,n)=>{const{commands:a,shell:s}=e,l=(t=null!=t?t:c.nullTranslator).load("notebook");a.addCommand(N.openEditNotebookMetadata,{label:l.__("Edit Notebook Metadata"),execute:async()=>{const e="application:toggle-panel",o={side:"right",title:"Show Notebook Tools",id:"notebook-tools"};a.isToggled(e,o)||await a.execute(e,o).then((e=>{n&&(null==n?void 0:n.layout).widgets.forEach((e=>{e.widget.title.label===l.__("Advanced Tools")&&e.collapsed&&e.toggle()}))}))},isVisible:()=>null!==s.currentWidget&&s.currentWidget instanceof r.NotebookPanel}),o&&o.addItem({command:N.openEditNotebookMetadata,category:"Notebook Operations"})}},x,_,I,j,E,W,A]}}]);
|
notebook/static/5601.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[5601,1684],{95601:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var a=n(
|
|
1
|
+
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[5601,1684],{95601:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var a=n(84241),o=n(77075),i=n(50027),r=n(20763),s=n(14931);const c={id:"@jupyter-notebook/terminal-extension:opener",description:"A plugin to open terminals in a new tab.",requires:[a.IRouter,i.ITerminalTracker],autoStart:!0,activate:(e,t,n)=>{const{commands:a}=e,o=new RegExp("/terminals/(.*)"),i="router:terminal";a.addCommand(i,{execute:e=>{const t=e.path.match(o);if(!t)return;const[,i]=t;i&&(n.widgetAdded.connect(((e,t)=>{t.content.setOption("closeOnExit",!1)})),a.execute("terminal:open",{name:i}))}}),t.register({command:i,pattern:o})}},d={id:"@jupyter-notebook/terminal-extension:redirect",description:"Open terminals in a new tab.",requires:[i.ITerminalTracker],optional:[r.INotebookPathOpener],autoStart:!0,activate:(e,t,n)=>{const a=o.PageConfig.getBaseUrl(),i=null!=n?n:r.defaultNotebookPathOpener;t.widgetAdded.connect(((t,n)=>{if((0,s.find)(e.shell.widgets("main"),(e=>e.id===n.id)))return;const r=n.content.session.name;i.open({prefix:o.URLExt.join(a,"terminals"),path:r,target:"_blank"}),n.dispose()}))}},l=[c,d]}}]);
|