| Conditions | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # Author: Simon Blanke |
||
| 32 | def open_dashboard(self): |
||
| 33 | abspath = os.path.abspath(__file__) |
||
| 34 | dir_ = os.path.dirname(abspath) |
||
| 35 | |||
| 36 | paths = " ".join(self.search_ids) |
||
| 37 | open_streamlit = "streamlit run " + dir_ + "/run_streamlit.py " + paths |
||
| 38 | |||
| 39 | # from: https://stackoverflow.com/questions/7574841/open-a-terminal-from-python |
||
| 40 | os.system("gnome-terminal -e 'bash -c \" " + open_streamlit + " \"'") |
||
| 41 |