-
-
-
-
- Create and execute Jupyter Notebooks to analyze your data on this OpenCGA instance.
- Please note that this may involve additional costs.
-
-
-
-
+ renderWelcomeView() {
+ return html`
+
+
- `;
- } else {
- const userId = this.opencgaSession.user.id;
- const organizationId = this.opencgaSession.organization.id;
- const serverUrl = this.opencgaSession.server.host.replace("/opencga", "");
- const jupyterLoginUrl = serverUrl + "/jupyter/hub/login";
- const token = this.opencgaSession.token;
-
- return html`
-
-
-
+
+ Create and execute Jupyter Notebooks to analyze your data on this OpenCGA instance.
+ Please note that this may involve additional costs.
+
+
+
- `;
- }
+
+ `;
+ }
+
+ renderJupyterFrame() {
+ const userId = this.opencgaSession.user.id;
+ const organizationId = this.opencgaSession.organization.id;
+ const serverUrl = this.opencgaSession.server.host.replace("/opencga", "");
+ const jupyterLoginUrl = serverUrl + "/jupyter/hub/login";
+ const token = this.opencgaSession.token;
+
+ return html`
+
+ `;
}
render() {
+ if (!this.opencgaSession.study) {
+ return guardPage("No OpenCGA study available to run an analysis. Please login to continue.");
+ }
+
return html`
-
- ${this.renderContent()}
+
+
+ ${this.enter ? this.renderJupyterFrame() : this.renderWelcomeView()}
`;
}