diff --git a/.gitignore b/.gitignore index 5d541c8e..1386c743 100644 --- a/.gitignore +++ b/.gitignore @@ -129,4 +129,4 @@ dmypy.json .pyre/ # Project-specific -.notebook_*-*.ipynb +.aurora-*.ipynb diff --git a/notebook_experiments.ipynb b/aurora.ipynb similarity index 63% rename from notebook_experiments.ipynb rename to aurora.ipynb index 549f1ce3..647538d6 100644 --- a/notebook_experiments.ipynb +++ b/aurora.ipynb @@ -3,50 +3,69 @@ { "cell_type": "code", "execution_count": null, - "id": "a09fe8cd-1389-4d3d-8409-71c3dadc891e", - "metadata": {}, + "metadata": { + "vscode": { + "languageId": "javascript" + } + }, "outputs": [], "source": [ "%%javascript\n", + "\n", "IPython.OutputArea.prototype._should_scroll = function(lines) {\n", " return false;\n", "}\n", + "\n", "document.title='Aurora app'" ] }, { "cell_type": "code", "execution_count": null, - "id": "b46c9eb7", + "metadata": { + "vscode": { + "languageId": "html" + } + }, + "outputs": [], + "source": [ + "%%html\n", + "\n", + "" + ] + }, + { + "cell_type": "code", + "execution_count": null, "metadata": {}, "outputs": [], "source": [ - "from IPython.display import display, HTML\n", - "display(HTML(\"\"))" + "%matplotlib widget" ] }, { "cell_type": "code", "execution_count": null, - "id": "3a15d928-3884-4603-8fc8-57bb65d52ace", "metadata": {}, "outputs": [], "source": [ "import ipywidgets as ipw\n", - "from IPython.display import display\n", - "import numpy as np\n", - "import pandas as pd\n", - "import json\n", - "import aurora\n", - "\n", - "import matplotlib.pyplot as plt\n", - "%matplotlib widget" + "from IPython.display import display" ] }, { "cell_type": "code", "execution_count": null, - "id": "a938a8c7-bff3-4df0-8ca8-1a5b56fc3aac", "metadata": {}, "outputs": [], "source": [ @@ -56,18 +75,24 @@ { "cell_type": "code", "execution_count": null, - "id": "9595acff-0181-4b25-ab62-4fd4b46a202c", "metadata": {}, "outputs": [], "source": [ - "w_main = MainPanel()\n", + "w_main = MainPanel()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ "display(w_main)" ] }, { "attachments": {}, "cell_type": "markdown", - "id": "7f5f3983-6e08-4daa-9b88-35b86368e4de", "metadata": {}, "source": [ "***AURORA* Autonomous Robotic Battery Innovation Platform** BIG-MAP Stakeholder Initiative 2021\n", @@ -87,29 +112,11 @@ } ], "metadata": { - "kernelspec": { - "display_name": "Python 3 (ipykernel)", - "language": "python", - "name": "python3" - }, "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.9.5" + "name": "python" }, - "vscode": { - "interpreter": { - "hash": "17c88e46861690d52b34e434e85f0be56292e39f41a35396b131b301eeee09bb" - } - } + "orig_nbformat": 4 }, "nbformat": 4, - "nbformat_minor": 5 + "nbformat_minor": 2 } diff --git a/notebook_results.ipynb b/notebook_results.ipynb deleted file mode 100644 index 1715de7f..00000000 --- a/notebook_results.ipynb +++ /dev/null @@ -1,114 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": null, - "id": "a09fe8cd-1389-4d3d-8409-71c3dadc891e", - "metadata": {}, - "outputs": [], - "source": [ - "%%javascript\n", - "IPython.OutputArea.prototype._should_scroll = function(lines) {\n", - " return false;\n", - "}\n", - "document.title='Results Visualizer'" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "92b9ea48", - "metadata": {}, - "outputs": [], - "source": [ - "from IPython.display import display, HTML\n", - "display(HTML(\"\"))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "3a15d928-3884-4603-8fc8-57bb65d52ace", - "metadata": {}, - "outputs": [], - "source": [ - "import ipywidgets as ipw\n", - "from IPython.display import display\n", - "import numpy as np\n", - "import pandas as pd\n", - "import json\n", - "import aurora\n", - "\n", - "import matplotlib.pyplot as plt\n", - "%matplotlib widget" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "ebb0f23e", - "metadata": {}, - "outputs": [], - "source": [ - "from aurora.interface.menus import CyclingResultsWidget" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "9595acff-0181-4b25-ab62-4fd4b46a202c", - "metadata": {}, - "outputs": [], - "source": [ - "w_results = CyclingResultsWidget()\n", - "display(w_results)" - ] - }, - { - "cell_type": "markdown", - "id": "7f5f3983-6e08-4daa-9b88-35b86368e4de", - "metadata": {}, - "source": [ - "***AURORA* Autonomous Robotic Battery Innovation Platform** BIG-MAP Stakeholder Initiative 2021\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "
\"BIG-MAP\"\"Battery\"European\"Empa\"\"EPFL\"
\n" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3 (ipykernel)", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.9.5" - }, - "vscode": { - "interpreter": { - "hash": "17c88e46861690d52b34e434e85f0be56292e39f41a35396b131b301eeee09bb" - } - } - }, - "nbformat": 4, - "nbformat_minor": 5 -} diff --git a/notebook_samples.ipynb b/notebook_samples.ipynb deleted file mode 100644 index c98caf18..00000000 --- a/notebook_samples.ipynb +++ /dev/null @@ -1,115 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": null, - "id": "a09fe8cd-1389-4d3d-8409-71c3dadc891e", - "metadata": {}, - "outputs": [], - "source": [ - "%%javascript\n", - "IPython.OutputArea.prototype._should_scroll = function(lines) {\n", - " return false;\n", - "}\n", - "document.title='Sample Manager'" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "c22cc69f", - "metadata": {}, - "outputs": [], - "source": [ - "from IPython.display import display, HTML\n", - "display(HTML(\"\"))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "3a15d928-3884-4603-8fc8-57bb65d52ace", - "metadata": {}, - "outputs": [], - "source": [ - "import ipywidgets as ipw\n", - "from IPython.display import display\n", - "import numpy as np\n", - "import pandas as pd\n", - "import json\n", - "import aurora\n", - "\n", - "import matplotlib.pyplot as plt\n", - "%matplotlib widget" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "ebb0f23e", - "metadata": {}, - "outputs": [], - "source": [ - "from aurora.interface.menus import ManageSamplesMenu" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "9595acff-0181-4b25-ab62-4fd4b46a202c", - "metadata": {}, - "outputs": [], - "source": [ - "manage_samples_menu = ManageSamplesMenu()\n", - "display(manage_samples_menu)" - ] - }, - { - "attachments": {}, - "cell_type": "markdown", - "id": "7f5f3983-6e08-4daa-9b88-35b86368e4de", - "metadata": {}, - "source": [ - "***AURORA* Autonomous Robotic Battery Innovation Platform** BIG-MAP Stakeholder Initiative 2021\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "
\"BIG-MAP\"\"Battery\"European\"Empa\"\"EPFL\"
\n" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3 (ipykernel)", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.9.5" - }, - "vscode": { - "interpreter": { - "hash": "17c88e46861690d52b34e434e85f0be56292e39f41a35396b131b301eeee09bb" - } - } - }, - "nbformat": 4, - "nbformat_minor": 5 -} diff --git a/start.py b/start.py index dc49e2ef..06afe19e 100644 --- a/start.py +++ b/start.py @@ -1,16 +1,18 @@ import ipywidgets as ipw -template = """ -

Aurora app

-

Submit Experiment

-

Manage Samples

-

Results visualizer

+TEMPLATE = """ +

+ + ♣ Aurora ♣ + +

""" def get_start_widget(appbase, jupbase, notebase): - html = template.format(appbase=appbase, jupbase=jupbase, notebase=notebase) + html = TEMPLATE.format(appbase=appbase) return ipw.HTML(html) - - -# EOF