jupyterlab-mlflow 0.4.1__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 jupyterlab-mlflow might be problematic. Click here for more details.
- jupyterlab_mlflow/__init__.py +63 -0
- jupyterlab_mlflow/_version.py +6 -0
- jupyterlab_mlflow/post_install.py +44 -0
- jupyterlab_mlflow/schema/plugin.json +17 -0
- jupyterlab_mlflow/serverextension/__init__.py +69 -0
- jupyterlab_mlflow/serverextension/handlers.py +570 -0
- jupyterlab_mlflow/serverextension/mlflow_server.py +214 -0
- jupyterlab_mlflow-0.4.1.data/data/etc/jupyter/jupyter_server_config.d/jupyterlab_mlflow.json +8 -0
- jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/install.json +12 -0
- jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/package.json +103 -0
- jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/schema/plugin.json +17 -0
- jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/schemas/jupyterlab-mlflow/package.json.orig +98 -0
- jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/schemas/jupyterlab-mlflow/plugin.json +17 -0
- jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/static/218.47b1285b67dde3db8969.js +1 -0
- jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/static/665.f3ea36ea04224fd9c2f3.js +1 -0
- jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/static/remoteEntry.121dc9414dda869fb1a6.js +1 -0
- jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/static/style.js +4 -0
- jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/static/third-party-licenses.json +16 -0
- jupyterlab_mlflow-0.4.1.dist-info/METADATA +273 -0
- jupyterlab_mlflow-0.4.1.dist-info/RECORD +23 -0
- jupyterlab_mlflow-0.4.1.dist-info/WHEEL +4 -0
- jupyterlab_mlflow-0.4.1.dist-info/entry_points.txt +2 -0
- jupyterlab_mlflow-0.4.1.dist-info/licenses/LICENSE +30 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkjupyterlab_mlflow=self.webpackChunkjupyterlab_mlflow||[]).push([[665],{56:(n,o,r)=>{n.exports=function(n){var o=r.nc;o&&n.setAttribute("nonce",o)}},72:n=>{var o=[];function r(n){for(var r=-1,t=0;t<o.length;t++)if(o[t].identifier===n){r=t;break}return r}function t(n,t){for(var l={},a=[],i=0;i<n.length;i++){var p=n[i],d=t.base?p[0]+t.base:p[0],c=l[d]||0,s="".concat(d," ").concat(c);l[d]=c+1;var f=r(s),u={css:p[1],media:p[2],sourceMap:p[3],supports:p[4],layer:p[5]};if(-1!==f)o[f].references++,o[f].updater(u);else{var x=e(u,t);t.byIndex=i,o.splice(i,0,{identifier:s,updater:x,references:1})}a.push(s)}return a}function e(n,o){var r=o.domAPI(o);return r.update(n),function(o){if(o){if(o.css===n.css&&o.media===n.media&&o.sourceMap===n.sourceMap&&o.supports===n.supports&&o.layer===n.layer)return;r.update(n=o)}else r.remove()}}n.exports=function(n,e){var l=t(n=n||[],e=e||{});return function(n){n=n||[];for(var a=0;a<l.length;a++){var i=r(l[a]);o[i].references--}for(var p=t(n,e),d=0;d<l.length;d++){var c=r(l[d]);0===o[c].references&&(o[c].updater(),o.splice(c,1))}l=p}}},113:n=>{n.exports=function(n,o){if(o.styleSheet)o.styleSheet.cssText=n;else{for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(document.createTextNode(n))}}},314:n=>{n.exports=function(n){var o=[];return o.toString=function(){return this.map(function(o){var r="",t=void 0!==o[5];return o[4]&&(r+="@supports (".concat(o[4],") {")),o[2]&&(r+="@media ".concat(o[2]," {")),t&&(r+="@layer".concat(o[5].length>0?" ".concat(o[5]):""," {")),r+=n(o),t&&(r+="}"),o[2]&&(r+="}"),o[4]&&(r+="}"),r}).join("")},o.i=function(n,r,t,e,l){"string"==typeof n&&(n=[[null,n,void 0]]);var a={};if(t)for(var i=0;i<this.length;i++){var p=this[i][0];null!=p&&(a[p]=!0)}for(var d=0;d<n.length;d++){var c=[].concat(n[d]);t&&a[c[0]]||(void 0!==l&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=l),r&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=r):c[2]=r),e&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=e):c[4]="".concat(e)),o.push(c))}},o}},540:n=>{n.exports=function(n){var o=document.createElement("style");return n.setAttributes(o,n.attributes),n.insert(o,n.options),o}},601:n=>{n.exports=function(n){return n[1]}},646:(n,o,r)=>{r.d(o,{A:()=>i});var t=r(601),e=r.n(t),l=r(314),a=r.n(l)()(e());a.push([n.id,"/**\n * MLflow Extension Styles\n */\n\n.mlflow-widget {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.mlflow-panel {\n display: flex;\n flex-direction: column;\n height: 100%;\n overflow: hidden;\n}\n\n.mlflow-panel-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 12px;\n border-bottom: 1px solid var(--jp-border-color1);\n background: var(--jp-layout-color1);\n}\n\n.mlflow-panel-title {\n font-weight: 600;\n font-size: 14px;\n}\n\n.mlflow-panel-controls {\n display: flex;\n gap: 4px;\n}\n\n.mlflow-button {\n background: var(--jp-layout-color2);\n border: 1px solid var(--jp-border-color1);\n border-radius: 3px;\n padding: 4px 8px;\n cursor: pointer;\n font-size: 12px;\n}\n\n.mlflow-button:hover {\n background: var(--jp-layout-color3);\n}\n\n.mlflow-button.active {\n background: var(--jp-brand-color1);\n color: white;\n}\n\n.mlflow-button-small {\n background: var(--jp-layout-color2);\n border: 1px solid var(--jp-border-color1);\n border-radius: 3px;\n padding: 2px 6px;\n cursor: pointer;\n font-size: 11px;\n}\n\n.mlflow-code-button {\n background: transparent;\n border: none;\n color: var(--jp-content-link-color, #1976d2);\n cursor: pointer;\n font-size: 12px;\n padding: 2px 6px;\n opacity: 0.7;\n font-family: monospace;\n line-height: 1;\n}\n\n.mlflow-code-button:hover {\n opacity: 1;\n background: var(--jp-layout-color2);\n border-radius: 3px;\n}\n\n.mlflow-download-button {\n background: transparent;\n border: none;\n cursor: pointer;\n font-size: 12px;\n padding: 2px 4px;\n opacity: 0.7;\n line-height: 1;\n}\n\n.mlflow-download-button:hover {\n opacity: 1;\n background: var(--jp-layout-color2);\n border-radius: 3px;\n}\n\n.mlflow-toast {\n position: fixed;\n bottom: 20px;\n right: 20px;\n background: var(--jp-success-color1, #4caf50);\n color: white;\n padding: 12px 24px;\n border-radius: 4px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);\n z-index: 10000;\n font-size: 13px;\n}\n\n@keyframes mlflow-slideIn {\n from {\n transform: translateY(100%);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n}\n\n@keyframes mlflow-slideOut {\n from {\n transform: translateY(0);\n opacity: 1;\n }\n to {\n transform: translateY(100%);\n opacity: 0;\n }\n}\n\n.mlflow-button-primary {\n background: var(--jp-brand-color1);\n color: white;\n}\n\n.mlflow-button-close {\n background: transparent;\n border: none;\n font-size: 20px;\n cursor: pointer;\n padding: 0 8px;\n}\n\n.mlflow-panel-content {\n flex: 1;\n overflow: auto;\n padding: 8px;\n}\n\n.mlflow-settings-container {\n border-bottom: 1px solid var(--jp-border-color1);\n background: var(--jp-layout-color2);\n}\n\n.mlflow-settings-panel {\n padding: 12px;\n}\n\n.mlflow-settings-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 12px;\n}\n\n.mlflow-settings-header h3 {\n margin: 0;\n font-size: 14px;\n}\n\n.mlflow-settings-content {\n display: flex;\n flex-direction: column;\n gap: 12px;\n}\n\n.mlflow-settings-field {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.mlflow-settings-field label {\n font-size: 12px;\n font-weight: 500;\n}\n\n.mlflow-input {\n padding: 6px 8px;\n border: 1px solid var(--jp-border-color1);\n border-radius: 3px;\n font-size: 12px;\n background: var(--jp-layout-color1);\n color: var(--jp-content-font-color1);\n}\n\n.mlflow-settings-help {\n font-size: 11px;\n color: var(--jp-content-font-color2);\n}\n\n.mlflow-settings-divider {\n height: 1px;\n background: var(--jp-border-color1);\n margin: 16px 0;\n}\n\n.mlflow-settings-section {\n margin-top: 16px;\n}\n\n.mlflow-settings-section-title {\n margin: 0 0 8px 0;\n font-size: 13px;\n font-weight: 600;\n color: var(--jp-content-font-color1);\n}\n\n.mlflow-settings-actions {\n display: flex;\n gap: 8px;\n align-items: center;\n}\n\n.mlflow-test-result {\n padding: 4px 8px;\n border-radius: 3px;\n font-size: 12px;\n}\n\n.mlflow-test-result.success {\n background: #d4edda;\n color: #155724;\n}\n\n.mlflow-test-result.error {\n background: #f8d7da;\n color: #721c24;\n}\n\n.mlflow-tabs {\n display: flex;\n border-bottom: 1px solid var(--jp-border-color1);\n background: var(--jp-layout-color1);\n}\n\n.mlflow-tab {\n padding: 8px 16px;\n border: none;\n background: transparent;\n cursor: pointer;\n border-bottom: 2px solid transparent;\n font-size: 12px;\n}\n\n.mlflow-tab:hover {\n background: var(--jp-layout-color2);\n}\n\n.mlflow-tab.active {\n border-bottom-color: var(--jp-brand-color1);\n color: var(--jp-brand-color1);\n}\n\n.mlflow-tab:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.mlflow-tree-view,\n.mlflow-list-view {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.mlflow-tree-content,\n.mlflow-list-content {\n flex: 1;\n overflow: auto;\n padding: 8px;\n}\n\n.mlflow-tree-node {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n cursor: pointer;\n user-select: none;\n min-height: 24px;\n}\n\n.mlflow-tree-node:hover {\n background: var(--jp-layout-color2);\n}\n\n.mlflow-tree-icon {\n margin-right: 4px;\n width: 16px;\n text-align: center;\n}\n\n.mlflow-loading-container {\n display: inline-block;\n width: 16px;\n text-align: center;\n margin-right: 4px;\n flex-shrink: 0;\n}\n\n.mlflow-tree-label {\n flex: 1;\n font-size: 12px;\n}\n\n.mlflow-loading {\n color: var(--jp-content-font-color2);\n font-size: 12px;\n}\n\n.mlflow-error {\n padding: 12px;\n background: #f8d7da;\n color: #721c24;\n border-radius: 3px;\n margin: 8px;\n font-size: 12px;\n}\n\n.mlflow-error button {\n margin-left: 8px;\n padding: 4px 8px;\n background: white;\n border: 1px solid #721c24;\n border-radius: 3px;\n cursor: pointer;\n}\n\n.mlflow-table {\n width: 100%;\n border-collapse: collapse;\n font-size: 12px;\n}\n\n.mlflow-table th {\n background: var(--jp-layout-color2);\n padding: 8px;\n text-align: left;\n border-bottom: 2px solid var(--jp-border-color1);\n cursor: pointer;\n user-select: none;\n}\n\n.mlflow-table th:hover {\n background: var(--jp-layout-color3);\n}\n\n.mlflow-table td {\n padding: 8px;\n border-bottom: 1px solid var(--jp-border-color1);\n}\n\n.mlflow-table tr:hover {\n background: var(--jp-layout-color2);\n}\n\n.mlflow-metric {\n font-size: 11px;\n color: var(--jp-content-font-color2);\n}\n\n.mlflow-version {\n font-size: 11px;\n padding: 2px 4px;\n background: var(--jp-layout-color2);\n border-radius: 2px;\n margin: 2px 0;\n}\n\n.mlflow-context-menu-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1000;\n}\n\n.mlflow-context-menu {\n position: fixed;\n background: var(--jp-layout-color1);\n border: 1px solid var(--jp-border-color1);\n border-radius: 3px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n z-index: 1001;\n min-width: 150px;\n}\n\n.mlflow-context-menu-item {\n padding: 8px 12px;\n cursor: pointer;\n font-size: 12px;\n}\n\n.mlflow-context-menu-item:hover {\n background: var(--jp-layout-color2);\n}\n\n/* Shortcuts Panel Styles */\n.mlflow-shortcuts-panel {\n display: flex;\n flex-direction: column;\n height: 100%;\n overflow: hidden;\n}\n\n.mlflow-shortcuts-header {\n padding: 12px;\n border-bottom: 1px solid var(--jp-border-color1);\n background: var(--jp-layout-color1);\n}\n\n.mlflow-shortcuts-header h3 {\n margin: 0 0 4px 0;\n font-size: 14px;\n font-weight: 600;\n}\n\n.mlflow-shortcuts-description {\n margin: 0;\n font-size: 11px;\n color: var(--jp-content-font-color2);\n}\n\n.mlflow-shortcuts-content {\n flex: 1;\n overflow-y: auto;\n padding: 8px;\n}\n\n.mlflow-shortcuts-category {\n margin-bottom: 16px;\n}\n\n.mlflow-shortcuts-category-title {\n margin: 0 0 8px 0;\n font-size: 12px;\n font-weight: 600;\n color: var(--jp-content-font-color1);\n padding: 4px 0;\n border-bottom: 1px solid var(--jp-border-color2);\n}\n\n.mlflow-shortcuts-list {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.mlflow-shortcut-item {\n padding: 8px;\n border: 1px solid var(--jp-border-color1);\n border-radius: 4px;\n background: var(--jp-layout-color1);\n cursor: pointer;\n transition: all 0.2s ease;\n}\n\n.mlflow-shortcut-item:hover {\n background: var(--jp-layout-color2);\n border-color: var(--jp-brand-color1);\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n}\n\n.mlflow-shortcut-title {\n font-size: 12px;\n font-weight: 600;\n color: var(--jp-content-font-color1);\n margin-bottom: 4px;\n}\n\n.mlflow-shortcut-description {\n font-size: 11px;\n color: var(--jp-content-font-color2);\n margin-bottom: 6px;\n line-height: 1.4;\n}\n\n.mlflow-shortcut-code-preview {\n font-size: 10px;\n font-family: var(--jp-code-font-family);\n color: var(--jp-content-font-color3);\n background: var(--jp-layout-color2);\n padding: 4px 6px;\n border-radius: 3px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mlflow-shortcut-code-preview code {\n font-family: var(--jp-code-font-family);\n font-size: 10px;\n}\n\n/* MLflow IFrame Container Styles */\n.mlflow-iframe-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n}\n\n.mlflow-iframe-header {\n padding: 4px 8px;\n background: var(--jp-layout-color1);\n border-bottom: 1px solid var(--jp-border-color1);\n display: flex;\n justify-content: flex-end;\n align-items: center;\n flex-shrink: 0;\n}\n\n.mlflow-pop-out-link {\n font-size: 11px;\n color: var(--jp-content-link-color, #1976d2);\n text-decoration: none;\n padding: 4px 8px;\n border-radius: 3px;\n transition: background 0.2s ease;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n}\n\n.mlflow-pop-out-link:hover {\n background: var(--jp-layout-color2);\n text-decoration: none;\n}\n\n.mlflow-iframe {\n width: 100%;\n height: 100%;\n border: none;\n flex: 1;\n}\n\n/* Details View Styles */\n.mlflow-details-view {\n display: flex;\n flex-direction: column;\n height: 100%;\n overflow: hidden;\n}\n\n.mlflow-tabs {\n display: flex;\n gap: 4px;\n padding: 8px;\n border-bottom: 1px solid var(--jp-border-color1);\n background: var(--jp-layout-color1);\n}\n\n.mlflow-tab {\n background: var(--jp-layout-color2);\n border: 1px solid var(--jp-border-color1);\n border-radius: 3px 3px 0 0;\n padding: 6px 12px;\n cursor: pointer;\n font-size: 12px;\n border-bottom: none;\n}\n\n.mlflow-tab:hover {\n background: var(--jp-layout-color3);\n}\n\n.mlflow-tab.active {\n background: var(--jp-layout-color0);\n border-bottom: 1px solid var(--jp-layout-color0);\n position: relative;\n z-index: 1;\n}\n\n.mlflow-details-content {\n flex: 1;\n overflow-y: auto;\n padding: 12px;\n}\n\n.mlflow-details-navigation {\n margin-bottom: 12px;\n}\n\n.mlflow-details-metadata {\n margin-bottom: 20px;\n padding: 12px;\n background: var(--jp-layout-color1);\n border: 1px solid var(--jp-border-color1);\n border-radius: 4px;\n}\n\n.mlflow-details-title {\n margin: 0 0 12px 0;\n font-size: 14px;\n font-weight: 600;\n color: var(--jp-content-font-color1);\n}\n\n.mlflow-details-grid {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 12px;\n}\n\n.mlflow-details-item {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.mlflow-details-item-full {\n grid-column: 1 / -1;\n}\n\n.mlflow-details-label {\n font-size: 11px;\n font-weight: 600;\n color: var(--jp-content-font-color2);\n text-transform: uppercase;\n letter-spacing: 0.5px;\n}\n\n.mlflow-details-value {\n font-size: 12px;\n color: var(--jp-content-font-color1);\n word-break: break-word;\n}\n\n.mlflow-details-tags,\n.mlflow-details-metrics,\n.mlflow-details-params {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n margin-top: 4px;\n}\n\n.mlflow-tag,\n.mlflow-metric,\n.mlflow-param {\n display: inline-block;\n padding: 2px 6px;\n background: var(--jp-layout-color2);\n border: 1px solid var(--jp-border-color1);\n border-radius: 3px;\n font-size: 11px;\n color: var(--jp-content-font-color1);\n}\n\n.mlflow-details-table-section {\n margin-top: 20px;\n}\n\n.mlflow-details-section-title {\n margin: 0 0 8px 0;\n font-size: 13px;\n font-weight: 600;\n color: var(--jp-content-font-color1);\n}\n\n.mlflow-button-small {\n background: var(--jp-layout-color2);\n border: 1px solid var(--jp-border-color1);\n border-radius: 3px;\n padding: 2px 6px;\n cursor: pointer;\n font-size: 10px;\n}\n\n.mlflow-button-small:hover {\n background: var(--jp-layout-color3);\n}\n\n.mlflow-open-button {\n background: var(--jp-brand-color1, #1976d2);\n color: white;\n border: none;\n border-radius: 3px;\n padding: 2px 6px;\n cursor: pointer;\n font-size: 10px;\n font-weight: 500;\n}\n\n.mlflow-open-button:hover {\n background: var(--jp-brand-color0, #1565c0);\n opacity: 1;\n}\n\n/* Run ID button styles */\n.mlflow-run-id-button {\n background: var(--jp-layout-color2);\n border: 1px solid var(--jp-border-color1);\n border-radius: 3px;\n padding: 2px 6px;\n cursor: pointer;\n font-size: 11px;\n font-family: var(--jp-code-font-family);\n color: var(--jp-content-link-color, #1976d2);\n transition: all 0.2s ease;\n}\n\n.mlflow-run-id-button:hover {\n background: var(--jp-layout-color3);\n border-color: var(--jp-brand-color1, #1976d2);\n color: var(--jp-brand-color1, #1976d2);\n}\n\n.mlflow-actions-group {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n",""]);const i=a},659:n=>{var o={};n.exports=function(n,r){var t=function(n){if(void 0===o[n]){var r=document.querySelector(n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(n){r=null}o[n]=r}return o[n]}(n);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(r)}},665:(n,o,r)=>{r.r(o),r.d(o,{default:()=>g});var t=r(72),e=r.n(t),l=r(825),a=r.n(l),i=r(659),p=r.n(i),d=r(56),c=r.n(d),s=r(540),f=r.n(s),u=r(113),x=r.n(u),m=r(646),b={};b.styleTagTransform=x(),b.setAttributes=c(),b.insert=p().bind(null,"head"),b.domAPI=a(),b.insertStyleElement=f(),e()(m.A,b);const g=m.A&&m.A.locals?m.A.locals:void 0},825:n=>{n.exports=function(n){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var o=n.insertStyleElement(n);return{update:function(r){!function(n,o,r){var t="";r.supports&&(t+="@supports (".concat(r.supports,") {")),r.media&&(t+="@media ".concat(r.media," {"));var e=void 0!==r.layer;e&&(t+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),t+=r.css,e&&(t+="}"),r.media&&(t+="}"),r.supports&&(t+="}");var l=r.sourceMap;l&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(l))))," */")),o.styleTagTransform(t,n,o.options)}(o,n,r)},remove:function(){!function(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n)}(o)}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _JUPYTERLAB;(()=>{"use strict";var e,r,t,n,a,o,i,l,u,f,s,d,p,c,h,v,b,m,g,y={639:(e,r,t)=>{var n={"./index":()=>Promise.all([t.e(665),t.e(218)]).then(()=>()=>t(218)),"./extension":()=>Promise.all([t.e(665),t.e(218)]).then(()=>()=>t(218)),"./style":()=>t.e(665).then(()=>()=>t(665))},a=(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),o=(e,r)=>{if(t.S){var n="default",a=t.S[n];if(a&&a!==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:()=>a,init:()=>o})}},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+"."+{218:"47b1285b67dde3db8969",665:"f3ea36ea04224fd9c2f3"}[e]+".js?v="+{218:"47b1285b67dde3db8969",665:"f3ea36ea04224fd9c2f3"}[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-mlflow:",j.l=(t,n,a,o)=>{if(e[t])e[t].push(n);else{var i,l;if(void 0!==a)for(var u=document.getElementsByTagName("script"),f=0;f<u.length;f++){var s=u[f];if(s.getAttribute("src")==t||s.getAttribute("data-webpack")==r+a){i=s;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",j.nc&&i.setAttribute("nonce",j.nc),i.setAttribute("data-webpack",r+a),i.src=t),e[t]=[n];var d=(r,n)=>{i.onerror=i.onload=null,clearTimeout(p);var a=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach(e=>e(n)),r)return r(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),l&&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 a=r[t];if(a||(a=r[t]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[t])return e[t];j.o(j.S,t)||(j.S[t]={});var o=j.S[t],i="jupyterlab-mlflow",l=[];return"default"===t&&((e,r,t,n)=>{var a=o[e]=o[e]||{},l=a[r];(!l||!l.loaded&&(1!=!l.eager?n:i>l.from))&&(a[r]={get:()=>Promise.all([j.e(665),j.e(218)]).then(()=>()=>j(218)),from:i,eager:!1})})("jupyterlab-mlflow","0.4.1"),e[t]=l.length?Promise.all(l).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(/^blob:/,"").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 a=e[n],o=(typeof a)[0];if(n>=r.length)return"u"==o;var i=r[n],l=(typeof i)[0];if(o!=l)return"o"==o&&"n"==l||"s"==l||"u"==o;if("o"!=o&&"u"!=o&&a!=i)return a<i;n++}},a=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,o=1;o<e.length;o++)n--,t+="u"==(typeof(l=e[o]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(o=1;o<e.length;o++){var l=e[o];i.push(0===l?"not("+u()+")":1===l?"("+u()+" || "+u()+")":2===l?i.pop()+" "+i.pop():a(l))}return u();function u(){return i.pop().replace(/^\((.+)\)$/,"$1")}},o=(e,r)=>{if(0 in e){r=t(r);var n=e[0],a=n<0;a&&(n=-n-1);for(var i=0,l=1,u=!0;;l++,i++){var f,s,d=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(s=(typeof(f=r[i]))[0]))return!u||("u"==d?l>n&&!a:""==d!=a);if("u"==s){if(!u||"u"!=d)return!1}else if(u)if(d==s)if(l<=n){if(f!=e[l])return!1}else{if(a?f>e[l]:f<e[l])return!1;f!=e[l]&&(u=!1)}else if("s"!=d&&"n"!=d){if(a||l<=n)return!1;u=!1,l--}else{if(l<=n||s<d!=a)return!1;u=!1}else"s"!=d&&"n"!=d&&(u=!1,l--)}}var p=[],c=p.pop.bind(p);for(i=1;i<e.length;i++){var h=e[i];p.push(1==h?c()|c():2==h?c()&c():h?o(h,r):!c())}return!!c()},i=(e,r)=>e&&j.o(e,r),l=e=>(e.loaded=1,e.get()),u=e=>Object.keys(e).reduce((r,t)=>(e[t].eager&&(r[t]=e[t]),r),{}),f=(e,r,t)=>{var a=t?u(e[r]):e[r];return Object.keys(a).reduce((e,r)=>!e||!a[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 "+a(n)+")",d=e=>{throw new Error(e)},p=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},c=(e,r,t)=>t?t():((e,r)=>d("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),h=(e=>function(r,t,n,a,o){var i=j.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,j.S[r],t,!1,a,o)):e(r,j.S[r],t,n,a,o)})((e,r,t,n,a,u)=>{if(!i(r,t))return c(e,t,u);var d=f(r,t,n);return o(a,d)||p(s(r,t,d,a)),l(r[t][d])}),v={},b={177:()=>h("default","@jupyterlab/mainmenu",!1,[1,4,4,10]),256:()=>h("default","@lumino/widgets",!1,[1,2,3,1,,"alpha",0]),297:()=>h("default","@jupyterlab/coreutils",!1,[1,6,4,10]),345:()=>h("default","react",!1,[1,18,2,0]),424:()=>h("default","@jupyterlab/translation",!1,[1,4,4,10]),560:()=>h("default","@jupyterlab/settingregistry",!1,[1,4,4,10]),628:()=>h("default","react-dom",!1,[1,18,2,0]),694:()=>h("default","@jupyterlab/ui-components",!1,[1,4,4,10]),860:()=>h("default","@jupyterlab/services",!1,[1,7,4,10]),986:()=>h("default","@jupyterlab/apputils",!1,[1,4,5,10])},m={218:[177,256,297,345,424,560,628,694,860,986]},g={},j.f.consumes=(e,r)=>{j.o(m,e)&&m[e].forEach(e=>{if(j.o(v,e))return r.push(v[e]);if(!g[e]){var t=r=>{v[e]=0,j.m[e]=t=>{delete j.c[e],t.exports=r()}};g[e]=!0;var n=r=>{delete v[e],j.m[e]=t=>{throw delete j.c[e],r}};try{var a=b[e]();a.then?r.push(v[e]=a.then(t).catch(n)):t(a)}catch(e){n(e)}}})},(()=>{var e={467: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 a=new Promise((t,a)=>n=e[r]=[t,a]);t.push(n[2]=a);var o=j.p+j.u(r),i=new Error;j.l(o,t=>{if(j.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+a+": "+o+")",i.name="ChunkLoadError",i.type=a,i.request=o,n[1](i)}},"chunk-"+r,r)}};var r=(r,t)=>{var n,a,[o,i,l]=t,u=0;if(o.some(r=>0!==e[r])){for(n in i)j.o(i,n)&&(j.m[n]=i[n]);l&&l(j)}for(r&&r(t);u<o.length;u++)a=o[u],j.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunkjupyterlab_mlflow=self.webpackChunkjupyterlab_mlflow||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),j.nc=void 0;var S=j(639);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB)["jupyterlab-mlflow"]=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,273 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: jupyterlab-mlflow
|
|
3
|
+
Version: 0.4.1
|
|
4
|
+
Project-URL: Homepage, https://github.com/BioLM/jupyterlab-mlflow
|
|
5
|
+
Project-URL: Bug Tracker, https://github.com/BioLM/jupyterlab-mlflow/issues
|
|
6
|
+
Project-URL: Documentation, https://github.com/BioLM/jupyterlab-mlflow#readme
|
|
7
|
+
Project-URL: Source, https://github.com/BioLM/jupyterlab-mlflow
|
|
8
|
+
Author: JupyterLab MLflow Contributors
|
|
9
|
+
License: BSD 3-Clause License
|
|
10
|
+
|
|
11
|
+
Copyright (c) 2024, JupyterLab MLflow Contributors
|
|
12
|
+
All rights reserved.
|
|
13
|
+
|
|
14
|
+
Redistribution and use in source and binary forms, with or without
|
|
15
|
+
modification, are permitted provided that the following conditions are met:
|
|
16
|
+
|
|
17
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
18
|
+
list of conditions and the following disclaimer.
|
|
19
|
+
|
|
20
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
21
|
+
this list of conditions and the following disclaimer in the documentation
|
|
22
|
+
and/or other materials provided with the distribution.
|
|
23
|
+
|
|
24
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
25
|
+
contributors may be used to endorse or promote products derived from
|
|
26
|
+
this software without specific prior written permission.
|
|
27
|
+
|
|
28
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
29
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
30
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
31
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
32
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
33
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
34
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
35
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
36
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
37
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
38
|
+
|
|
39
|
+
License-File: LICENSE
|
|
40
|
+
Keywords: Jupyter,JupyterLab,MLflow,jupyterlab-extension
|
|
41
|
+
Classifier: Framework :: Jupyter
|
|
42
|
+
Classifier: Framework :: Jupyter :: JupyterLab
|
|
43
|
+
Classifier: Framework :: Jupyter :: JupyterLab :: 4
|
|
44
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
45
|
+
Classifier: Programming Language :: Python
|
|
46
|
+
Classifier: Programming Language :: Python :: 3
|
|
47
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
48
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
49
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
50
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
51
|
+
Requires-Python: >=3.8
|
|
52
|
+
Requires-Dist: jupyterlab<5,>=4.0.0
|
|
53
|
+
Requires-Dist: mlflow>=2.0.0
|
|
54
|
+
Requires-Dist: tornado>=6.0.0
|
|
55
|
+
Provides-Extra: test
|
|
56
|
+
Requires-Dist: playwright; extra == 'test'
|
|
57
|
+
Requires-Dist: pytest; extra == 'test'
|
|
58
|
+
Requires-Dist: pytest-asyncio; extra == 'test'
|
|
59
|
+
Requires-Dist: pytest-cov; extra == 'test'
|
|
60
|
+
Requires-Dist: pytest-jupyter[server]>=0.6.0; extra == 'test'
|
|
61
|
+
Description-Content-Type: text/markdown
|
|
62
|
+
|
|
63
|
+
# JupyterLab MLflow Extension
|
|
64
|
+
|
|
65
|
+
A JupyterLab extension for browsing MLflow experiments, runs, models, and artifacts directly from the JupyterLab sidebar.
|
|
66
|
+
|
|
67
|
+
## Features
|
|
68
|
+
|
|
69
|
+
- Browse MLflow experiments, runs, models, and artifacts
|
|
70
|
+
- Tree view for hierarchical navigation
|
|
71
|
+
- Details/Object view for exploring metadata and child objects
|
|
72
|
+
- View artifacts in new JupyterLab tabs
|
|
73
|
+
- Copy experiment/run/model IDs to clipboard
|
|
74
|
+
- Generate and insert MLflow Python API code snippets
|
|
75
|
+
- Connect to remote MLflow tracking servers
|
|
76
|
+
- Launch local MLflow server with SQLite backend
|
|
77
|
+
- Settings UI with environment variable fallback
|
|
78
|
+
- MLflow shortcuts panel for common operations
|
|
79
|
+
|
|
80
|
+
## Requirements
|
|
81
|
+
|
|
82
|
+
- JupyterLab >= 4.0.0
|
|
83
|
+
- Python >= 3.8
|
|
84
|
+
- MLflow >= 2.0.0
|
|
85
|
+
|
|
86
|
+
## Installation
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
pip install jupyterlab-mlflow
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Or install from source:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
git clone https://github.com/BioLM/jupyterlab-mlflow.git
|
|
96
|
+
cd jupyterlab-mlflow
|
|
97
|
+
pip install -e .
|
|
98
|
+
jlpm install
|
|
99
|
+
jlpm build
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Configuration
|
|
103
|
+
|
|
104
|
+
The extension can be configured via:
|
|
105
|
+
|
|
106
|
+
1. **Settings UI**: Open JupyterLab Settings → Advanced Settings Editor → MLflow
|
|
107
|
+
2. **Environment Variable**: Set `MLFLOW_TRACKING_URI` environment variable
|
|
108
|
+
|
|
109
|
+
### Server Extension
|
|
110
|
+
|
|
111
|
+
The extension includes a server-side component that must be enabled. After installation, enable it with:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
jupyter server extension enable jupyterlab_mlflow.serverextension
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Or enable it system-wide:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
jupyter server extension enable jupyterlab_mlflow.serverextension --sys-prefix
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Verify it's enabled:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
jupyter server extension list
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
You should see `jupyterlab_mlflow.serverextension` in the enabled extensions list.
|
|
130
|
+
|
|
131
|
+
**Note**: In some JupyterLab deployments (especially managed environments), the server extension may need to be enabled by an administrator or configured in the deployment settings.
|
|
132
|
+
|
|
133
|
+
### Troubleshooting
|
|
134
|
+
|
|
135
|
+
If you're experiencing 404 errors when using the extension:
|
|
136
|
+
|
|
137
|
+
1. **Run the diagnostic script**:
|
|
138
|
+
```bash
|
|
139
|
+
python scripts/diagnose_extension.py
|
|
140
|
+
```
|
|
141
|
+
This will check:
|
|
142
|
+
- Package installation
|
|
143
|
+
- Entry point discovery
|
|
144
|
+
- Configuration files
|
|
145
|
+
- Extension status
|
|
146
|
+
- Handler registration
|
|
147
|
+
|
|
148
|
+
2. **Check if the extension is enabled**:
|
|
149
|
+
```bash
|
|
150
|
+
jupyter server extension list | grep mlflow
|
|
151
|
+
```
|
|
152
|
+
If it's not listed or not enabled, enable it:
|
|
153
|
+
```bash
|
|
154
|
+
jupyter server extension enable jupyterlab_mlflow.serverextension
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
3. **Verify the health endpoint**:
|
|
158
|
+
After starting JupyterLab, try accessing:
|
|
159
|
+
```
|
|
160
|
+
http://your-jupyterlab-url/mlflow/api/health
|
|
161
|
+
```
|
|
162
|
+
If this returns `{"status": "ok", ...}`, the extension is loaded correctly.
|
|
163
|
+
|
|
164
|
+
4. **Check server logs**:
|
|
165
|
+
Look for messages like:
|
|
166
|
+
```
|
|
167
|
+
✅ Registered jupyterlab-mlflow server extension
|
|
168
|
+
✅ Registered 11 API handlers with base_url: /jupyter/
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
5. **For managed deployments**:
|
|
172
|
+
- Ensure the package is installed in the correct Python environment
|
|
173
|
+
- Check that config files are present in `/etc/jupyter/` or the deployment's config directory
|
|
174
|
+
- Verify that entry points are discoverable (the diagnostic script checks this)
|
|
175
|
+
- Some managed environments require explicit enablement even with config files
|
|
176
|
+
|
|
177
|
+
## Usage
|
|
178
|
+
|
|
179
|
+
1. Configure your MLflow tracking URI in the settings or via environment variable
|
|
180
|
+
2. The MLflow sidebar will appear in the left sidebar
|
|
181
|
+
3. Browse experiments, runs, models, and artifacts
|
|
182
|
+
4. Click on artifacts to view them in new tabs
|
|
183
|
+
5. Right-click on items to copy IDs to clipboard
|
|
184
|
+
|
|
185
|
+
## Development
|
|
186
|
+
|
|
187
|
+
### Quick Local Testing
|
|
188
|
+
|
|
189
|
+
To test the extension locally without publishing to PyPI:
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
# Option 1: Use the test script (recommended)
|
|
193
|
+
./test_server_extension.sh
|
|
194
|
+
|
|
195
|
+
# Option 2: Manual steps
|
|
196
|
+
pip install -e .
|
|
197
|
+
npm run build:lib
|
|
198
|
+
python -m jupyter labextension build . --dev
|
|
199
|
+
jupyter server extension enable jupyterlab_mlflow.serverextension
|
|
200
|
+
jupyter lab
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Testing API Endpoints
|
|
204
|
+
|
|
205
|
+
After starting JupyterLab, test the server extension API endpoints:
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
# In another terminal, test the endpoints
|
|
209
|
+
./test_api_endpoints.sh http://localhost:8888 http://localhost:5000
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
Or manually test with curl:
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
# Test connection endpoint
|
|
216
|
+
curl "http://localhost:8888/mlflow/api/connection/test?tracking_uri=http://localhost:5000"
|
|
217
|
+
|
|
218
|
+
# Test local server status
|
|
219
|
+
curl "http://localhost:8888/mlflow/api/local-server"
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### Development Workflow
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
# Install dependencies
|
|
226
|
+
jlpm install
|
|
227
|
+
|
|
228
|
+
# Build the extension
|
|
229
|
+
jlpm build
|
|
230
|
+
|
|
231
|
+
# Watch for changes
|
|
232
|
+
jlpm watch
|
|
233
|
+
|
|
234
|
+
# Run tests
|
|
235
|
+
pytest
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
## Publishing
|
|
239
|
+
|
|
240
|
+
This package uses automatic version bumping and is published to PyPI when a new release is created on GitHub.
|
|
241
|
+
|
|
242
|
+
### Automatic Version Bumping
|
|
243
|
+
|
|
244
|
+
Version bumping is handled automatically by `semantic-release` based on commit messages:
|
|
245
|
+
|
|
246
|
+
- `feat: something` → minor version bump (0.1.0 → 0.2.0)
|
|
247
|
+
- `fix: something` → patch version bump (0.1.0 → 0.1.1)
|
|
248
|
+
- `BREAKING: something` → major version bump (0.1.0 → 1.0.0)
|
|
249
|
+
|
|
250
|
+
When you push to `main`, semantic-release will:
|
|
251
|
+
1. Analyze commits since last release
|
|
252
|
+
2. Bump version in `package.json` (if needed)
|
|
253
|
+
3. Create a git tag
|
|
254
|
+
4. Push the tag to GitHub
|
|
255
|
+
|
|
256
|
+
### Publishing to PyPI
|
|
257
|
+
|
|
258
|
+
1. **Create a GitHub Release:**
|
|
259
|
+
- Go to: https://github.com/BioLM/jupyterlab-mlflow/releases/new
|
|
260
|
+
- Select the tag created by semantic-release (e.g., `v0.2.0`)
|
|
261
|
+
- Add release notes
|
|
262
|
+
- Click "Publish release"
|
|
263
|
+
|
|
264
|
+
2. **Automatic Publishing:**
|
|
265
|
+
- The publish workflow automatically builds and publishes to PyPI
|
|
266
|
+
- No manual steps required after creating the release
|
|
267
|
+
|
|
268
|
+
See [PUBLISHING.md](PUBLISHING.md) for detailed instructions.
|
|
269
|
+
|
|
270
|
+
## License
|
|
271
|
+
|
|
272
|
+
BSD-3-Clause
|
|
273
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
jupyterlab_mlflow/__init__.py,sha256=_SL-nkQPBuTbuH3UcMJWMdAZCnXqukt4baQ-ExsbTYc,1974
|
|
2
|
+
jupyterlab_mlflow/_version.py,sha256=9qOVBsYE_vbj70hEIQq8SYTXWdUYuo6Da3dBCK8svYk,74
|
|
3
|
+
jupyterlab_mlflow/post_install.py,sha256=yALiqRrSs2kRO_0fMRA9wJtEB7h8FCAHk0_lKl1saTo,1389
|
|
4
|
+
jupyterlab_mlflow/schema/plugin.json,sha256=TgCNjgq6FzraUxdPYGLxyFGLJEo7VQWMAFi-12voe5Q,503
|
|
5
|
+
jupyterlab_mlflow/serverextension/__init__.py,sha256=3OMpJA-GXmbrz6CV_zUsizXnVwkhgjAYrLbiUiGPvqQ,2147
|
|
6
|
+
jupyterlab_mlflow/serverextension/handlers.py,sha256=Run7f1wfDpog2pid8aHkfl7Q23J183xtRgVmvMEF2z8,21126
|
|
7
|
+
jupyterlab_mlflow/serverextension/mlflow_server.py,sha256=e8YkCNPUGgkA6kXSJUX5N78jrzlMCYzTdvFw3AzymLQ,5979
|
|
8
|
+
jupyterlab_mlflow-0.4.1.data/data/etc/jupyter/jupyter_server_config.d/jupyterlab_mlflow.json,sha256=TaK4ipZo9m5rMKraBp26x7Mys_aycYGHUPsHHfiCO60,109
|
|
9
|
+
jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/package.json,sha256=7FKfqsyvsDpVmcuFNO5QnLCKRrpUZ9bc0Eg4QDvnoPk,3452
|
|
10
|
+
jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/schemas/jupyterlab-mlflow/package.json.orig,sha256=KQJnM62fhmA9X28BshgJJLExD5CEeJxkm0_l4TaQTHs,3310
|
|
11
|
+
jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/schemas/jupyterlab-mlflow/plugin.json,sha256=TgCNjgq6FzraUxdPYGLxyFGLJEo7VQWMAFi-12voe5Q,503
|
|
12
|
+
jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/static/218.47b1285b67dde3db8969.js,sha256=R7EoW2fd49uJaW9nGWoT_mbcHxZkdy23Xl4itVUKpPU,51637
|
|
13
|
+
jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/static/665.f3ea36ea04224fd9c2f3.js,sha256=8-o26gQiT9nC89nduihMFzZBRcEuPMOMj47_MKC6-hc,17506
|
|
14
|
+
jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/static/remoteEntry.121dc9414dda869fb1a6.js,sha256=Eh3JQU3ahp-xpnZ3B8jm5uT1lZmCTLyLPmMl5ZttN9c,7211
|
|
15
|
+
jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/static/style.js,sha256=qZQWLm8ds47aDuDMtlQWIM9IhrYKCyoJeYaFN0JuUSs,161
|
|
16
|
+
jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/static/third-party-licenses.json,sha256=W6N2sSD7tQihMqQk64F9xMd1Flfr2KO97esAiHUOYdM,2453
|
|
17
|
+
jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/install.json,sha256=JjKZHYYwXmQr7CM7T9M_MNUZit5WHAEhyVsd72g36Us,188
|
|
18
|
+
jupyterlab_mlflow-0.4.1.data/data/share/jupyter/labextensions/jupyterlab-mlflow/schema/plugin.json,sha256=TgCNjgq6FzraUxdPYGLxyFGLJEo7VQWMAFi-12voe5Q,503
|
|
19
|
+
jupyterlab_mlflow-0.4.1.dist-info/METADATA,sha256=IZOoD_uc4ELZloxRkhlbmxUR8myp292iXw5ERU-e-bA,8674
|
|
20
|
+
jupyterlab_mlflow-0.4.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
21
|
+
jupyterlab_mlflow-0.4.1.dist-info/entry_points.txt,sha256=Ow5q08HVyruTdLdrh6ZmCxgXF3LYdmL9mp5xsUCBuRM,100
|
|
22
|
+
jupyterlab_mlflow-0.4.1.dist-info/licenses/LICENSE,sha256=eGaPCenwpEVLoNaurPUkeWWbYzHAKwphBjHhZU0_5Tc,1539
|
|
23
|
+
jupyterlab_mlflow-0.4.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024, JupyterLab MLflow 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.
|
|
30
|
+
|