(self.webpackChunk_genepattern_nbtools=self.webpackChunk_genepattern_nbtools||[]).push([[480],{480:(o,t,e)=>{"use strict";e.r(t),e.d(t,{default:()=>g});var n=e(728),a=e(657),l=e(838),s=e(101),c=e(971),r=e(532),i=e(691),d=e(741),b=e(685),u=e(309),p=e(102);const m="nbtools:documentation",h=Object.assign(Object.assign(Object.assign({},l),s),c),g={id:"@genepattern/nbtools:plugin",requires:[n.IJupyterWidgetRegistry],optional:[r.IMainMenu,b.ILayoutRestorer,b.ILabShell,u.INotebookTracker],activate:function(o,t,e,n,l,s){!function(o,t){p.o.jupyter_app=o,p.o.notebook_tracker=t,p.o.context()}(o,s);const c=new d.S;return function(o,t){o.commands.addCommand(m,{label:"nbtools Documentation",caption:"Open documentation for nbtools",isEnabled:()=>!!o.shell,execute:()=>{let o=document.createElement("a");o.href="https://github.com/genepattern/nbtools#nbtools",o.target="_blank",document.body.appendChild(o),o.click(),document.body.removeChild(o)}}),t&&t.helpMenu.addGroup([{command:m}],2)}(o,e),function(o,t){o.commands.addCommand("nbtools:insert-tool",{label:"Insert Notebook Tool",execute:()=>{o.shell.activateById("nbtools-browser");const e=t.list();1===e.length?i.vb.add_tool_cell(e[0]):document.querySelector(".nbtools-search").focus()}})}(o,c),function(o,t){const e=new i.SB;e.title.iconClass="nbtools-icon fa fa-th jp-SideBar-tabIcon",e.title.caption="Toolbox",e.id="nbtools-browser",t&&t.add(e,"nbtools"),o.shell.add(e,"left",{rank:102})}(o,n),t.registerWidget({name:a.o,version:a.Y,exports:h}),c},autoStart:!0}}}]);