Skip to content

Commit

Permalink
Update JS files to recent change for JupyterLab fix.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 401539271
  • Loading branch information
mdreves authored and tfx-copybara committed Oct 7, 2021
1 parent 37825bc commit 50fe33a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions tensorflow_model_analysis/static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ define(["@jupyter-widgets/base"], function(__WEBPACK_EXTERNAL_MODULE_3__) { retu
/* 0 */
/***/ (function(module, exports) {

module.exports = {"name":"tensorflow_model_analysis","version":"0.30.0","homepage":"https://github.com/tensorflow/model-analysis","bugs":"https://github.com/tensorflow/model-analysis/issues","license":"Apache-2.0","repository":{"type":"git","url":"https://github.com/tensorflow/model-analysis.git"},"main":"lib/index.js","files":["lib/**/*.js","dist/*.js","README.md","LICENSE"],"scripts":{"clean":"rimraf dist/","prepare":"webpack && ./collect-files-before-publish.sh","test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"webpack":"^3.5.5","rimraf":"^2.6.1"},"dependencies":{"@jupyter-widgets/base":"^1.1 || ^2 || ^3 || ^4","lodash":"^4.17.4"},"jupyterlab":{"extension":"lib/labplugin","sharedPackages":{"@jupyter-widgets/base":{"bundled":false,"singleton":true}}},"publishConfig":{"registry":"https://wombat-dressing-room.appspot.com"}}
module.exports = {"name":"tensorflow_model_analysis","version":"0.34.1","homepage":"https://github.com/tensorflow/model-analysis","bugs":"https://github.com/tensorflow/model-analysis/issues","license":"Apache-2.0","repository":{"type":"git","url":"https://github.com/tensorflow/model-analysis.git"},"main":"lib/index.js","files":["lib/**/*.js","dist/*.js","README.md","LICENSE"],"scripts":{"clean":"rimraf dist/","prepare":"webpack && ./collect-files-before-publish.sh","test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"webpack":"^3.5.5","rimraf":"^2.6.1"},"dependencies":{"@jupyter-widgets/base":"^1.1 || ^2 || ^3 || ^4","lodash":"^4.17.4"},"jupyterlab":{"extension":"lib/labplugin","sharedPackages":{"@jupyter-widgets/base":{"bundled":false,"singleton":true}}},"publishConfig":{"registry":"https://wombat-dressing-room.appspot.com"}}

/***/ }),
/* 1 */
Expand Down Expand Up @@ -130,7 +130,16 @@ function loadVulcanizedTemplate() {
}
// Jupyter Lab
else if (window['isJupyterLab']) {
templatePath = '/nbextensions/tensorflow_model_analysis/';
let baseUrl = '/';
const jupyterConfigData = document.getElementById('jupyter-config-data');
if (jupyterConfigData) {
const configData = JSON.parse(jupyterConfigData.textContent || '');
if (configData) {
baseUrl = configMap['baseUrl'] || '/';
}
}

templatePath = baseUrl + 'nbextensions/tensorflow_model_analysis/';
}
// Kubeflow
else {
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_model_analysis/static/index.js.map

Large diffs are not rendered by default.

0 comments on commit 50fe33a

Please sign in to comment.