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