From 8176593c4e2ef93fb02dd7f30e24dba9f37bcf4b Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 8 Nov 2021 05:16:35 +0300 Subject: Hook up new UI page to the main menu * Hook up the new Jupyter Notebooks UI to the main menu --- wqflask/wqflask/__init__.py | 3 +++ wqflask/wqflask/jupyter_notebooks.py | 4 ++-- wqflask/wqflask/templates/base.html | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/__init__.py b/wqflask/wqflask/__init__.py index 7d46fbad..9223ec5d 100644 --- a/wqflask/wqflask/__init__.py +++ b/wqflask/wqflask/__init__.py @@ -23,6 +23,8 @@ from wqflask.api.markdown import facilities_blueprint from wqflask.api.markdown import blogs_blueprint from wqflask.api.markdown import news_blueprint +from wqflask.jupyter_notebooks import jupyter_notebooks + app = Flask(__name__) @@ -60,6 +62,7 @@ app.register_blueprint(environments_blueprint, url_prefix="/environments") app.register_blueprint(facilities_blueprint, url_prefix="/facilities") app.register_blueprint(blogs_blueprint, url_prefix="/blogs") app.register_blueprint(news_blueprint, url_prefix="/news") +app.register_blueprint(jupyter_notebooks, url_prefix="jupyter_notebooks") app.register_blueprint(resource_management, url_prefix="/resource-management") diff --git a/wqflask/wqflask/jupyter_notebooks.py b/wqflask/wqflask/jupyter_notebooks.py index c7d5ffa3..348b252d 100644 --- a/wqflask/wqflask/jupyter_notebooks.py +++ b/wqflask/wqflask/jupyter_notebooks.py @@ -2,8 +2,8 @@ from Flask import BluePrint, render_template jupyter_notebooks = Blueprint('jupyter_notebooks', __name__) -@jupyter_notebooks.route("/jupyter-notebooks-launcher", methods=("GET",)) -def jupyter_notebooks_launcher(): +@jupyter_notebooks.route("/launcher", methods=("GET",)) +def launcher(): links = ( { "main_url": "http://notebook.genenetwork.org/51091/tree?", diff --git a/wqflask/wqflask/templates/base.html b/wqflask/wqflask/templates/base.html index 4a6674c6..ab8b644f 100644 --- a/wqflask/wqflask/templates/base.html +++ b/wqflask/wqflask/templates/base.html @@ -87,7 +87,7 @@
  • Systems Genetics PheWAS
  • Genome Browser
  • BXD Power Calculator
  • -
  • Jupyter Notebook Launcher
  • +
  • Jupyter Notebook Launcher
  • Interplanetary File System
  • -- cgit v1.2.3