-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstart.py
38 lines (30 loc) · 1.34 KB
/
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
30
31
32
33
34
35
36
37
38
import ipywidgets as ipw
def get_start_widget(appbase, jupbase):
# http://fontawesome.io/icons/
template = """
<table>
<tr>
<th style="text-align:center">Prepare the structure</th>
<th style="width:70px" rowspan=2></th>
<th style="text-align:center">Pore analysis</th>
<th style="width:70px" rowspan=2></th>
<th style="text-align:center">Isotherm calculations</th>
<tr>
<td valign="top"><ul>
<li><a href="{appbase}/multistage_geo_opt_ddec.ipynb" target="_blank">Geometry Optimization and Charges</a>
<li><a href="{appbase}/results.ipynb?process_label=Cp2kMultistageDdecWorkChain" target="_blank">Results</a>
</ul></td>
<td valign="top"><ul>
<li><a href="{appbase}/pore_analysis.ipynb" target="_blank">Pore Analysis</a>
<li><a href="{appbase}/results.ipynb?process_label=NetworkCalculation" target="_blank">Results</a>
</ul></td>
<td valign="top"><ul>
<li><a href="{appbase}/compute_isotherm.ipynb" target="_blank">Compute one</a>
<li><a href="{appbase}/analyse_isotherm_results.ipynb" target="_blank">Analyse the results</a>
<li><a href="{appbase}/results.ipynb?process_label=IsothermWorkChain" target="_blank">Results</a>
</ul></td>
</tr></table>
"""
html = template.format(appbase=appbase, jupbase=jupbase)
return ipw.HTML(html)
# EOF