forked from aiidalab/aiidalab-widgets-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.py
29 lines (23 loc) · 785 Bytes
/
start.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""Start page appearance."""
import ipywidgets as ipw
TEMPLATE = """
<table>
<tr>
<th style="text-align:center">Processes.</th>
<th style="width:70px" rowspan=2></th>
<th style="text-align:center">Electronic Lab Notebook.</th>
<tr>
<td valign="top"><ul>
<li><a href="{appbase}/notebooks/process_list.ipynb" target="_blank">Process list</a></li>
<li><a href="{appbase}/notebooks/process.ipynb" target="_blank">Follow a process</a></li>
</ul></td>
<td valign="top"><ul>
<li><a href="{appbase}/notebooks/eln_configure.ipynb" target="_blank">Configure ELN</a></li>
</ul></td>
</tr>
</table>
"""
def get_start_widget(appbase, jupbase, notebase):
html = TEMPLATE.format(appbase=appbase, jupbase=jupbase, notebase=notebase)
return ipw.HTML(html)
# EOF