Conditions | 1 |
Total Lines | 24 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # Author: Simon Blanke |
||
20 | def open( |
||
21 | self, |
||
22 | plots=[ |
||
23 | "score_statistics", |
||
24 | "1d_scatter", |
||
25 | "2d_scatter", |
||
26 | "3d_scatter", |
||
27 | "parallel_coordinates", |
||
28 | ], |
||
29 | ): |
||
30 | abspath = os.path.abspath(__file__) |
||
31 | dname = os.path.dirname(abspath) |
||
32 | |||
33 | streamlit_plot_args = " ".join(plots) |
||
34 | |||
35 | command = ( |
||
36 | "streamlit run " |
||
37 | + dname |
||
38 | + "/st_script.py " |
||
39 | + self.path |
||
40 | + " " |
||
41 | + streamlit_plot_args |
||
42 | ) |
||
43 | os.system(command) |
||
44 |