Hi everyone,
Using streamlit first time and already my head is full of potential apps I want to make with it beyond the data science stuff. So, here goes my question.
One of the thing I am doing is trying to run another python script from the terminal on the Mac after clicking a button. Basically, the user will be using the dropdowns to select a few options which will be used as arguments to my other python script. To open the terminal, I use the following.
run_button = st.button(‘Run’)
command = f"osascript -e ‘tell application {final_app} to do script {final_command}’"
if run_button:
os.popen(command).read()
However, no new terminal opens. No error comes up as well. Any hints on how to accomplish this?
Thanks!