aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-11-08 05:16:35 +0300
committerFrederick Muriuki Muriithi2021-11-08 05:16:35 +0300
commit8176593c4e2ef93fb02dd7f30e24dba9f37bcf4b (patch)
treefa83f165c3cac44723d08782ba20cee58c05099b /wqflask
parentd905866c9a025f6af4d08432d978349ab09348c0 (diff)
downloadgenenetwork2-8176593c4e2ef93fb02dd7f30e24dba9f37bcf4b.tar.gz
Hook up new UI page to the main menu
* Hook up the new Jupyter Notebooks UI to the main menu
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/__init__.py3
-rw-r--r--wqflask/wqflask/jupyter_notebooks.py4
-rw-r--r--wqflask/wqflask/templates/base.html2
3 files changed, 6 insertions, 3 deletions
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 @@
<li><a href="https://systems-genetics.org/">Systems Genetics PheWAS</a></li>
<li><a href="http://ucscbrowser.genenetwork.org/">Genome Browser</a></li>
<li><a href="http://power.genenetwork.org">BXD Power Calculator</a></li>
- <li><a href="http://notebook.genenetwork.org/">Jupyter Notebook Launcher</a></li>
+ <li><a href="url_for('jupyter_notebooks.launcher')">Jupyter Notebook Launcher</a></li>
<li><a href="http://datafiles.genenetwork.org">Interplanetary File System</a></li>
</ul>
</li>