Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/TASK-7100' into TASK-7100
Browse files Browse the repository at this point in the history
  • Loading branch information
gpveronica committed Dec 17, 2024
2 parents a6d9bd3 + bfa73b2 commit d9bd31e
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions src/webcomponents/commons/analysis/jupyter-notebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,12 @@
*/

import {LitElement, html} from "lit";
import UtilsNew from "../../../core/utils-new.js";
import {guardPage} from "../html-utils.js";
import "../../text-icon.js";
import "./opencga-analysis-tool-form.js";

export default class JupyterNotebook extends LitElement {

constructor() {
super();

this._init();
}

createRenderRoot() {
return this;
}
Expand All @@ -43,20 +36,11 @@ export default class JupyterNotebook extends LitElement {
};
}

_init() {
this._prefix = UtilsNew.randomString(8);
}

connectedCallback() {
super.connectedCallback();
}

update(changedProperties) {
if (changedProperties.has("config")) {
this._config = {
...this.config
};
// this.requestUpdate();
}
super.update(changedProperties);
}
Expand Down Expand Up @@ -86,15 +70,16 @@ export default class JupyterNotebook extends LitElement {
const serverUrl = this.opencgaSession.server.host.replace("/opencga", "");
const jupyterLoginUrl = serverUrl + "/jupyter/hub/login";
const token = this.opencgaSession.token;
debugger

return html`
<div class="p-2">
<h2>Jupyter Notebook</h2>
<div class="m-3">
<iframe src="https://test.app.zettagenomics.com/task-6757a/jupyter/hub/login?userId=${userId}&organizationId=${organizationId}&opencgaUrl=${serverUrl}&logoutUrl=https:%2F%2Fwww.google.com&token=${token}"
width="1600" height="720">
<iframe
src="${jupyterLoginUrl}?userId=${userId}&organizationId=${organizationId}&opencgaUrl=${serverUrl}&logoutUrl=https:%2F%2Fwww.google.com&token=${token}"
width="1600"
height="720">
</iframe>
</div>
</div>
`;
Expand Down

0 comments on commit d9bd31e

Please sign in to comment.