Call os.system() with st.button on_click callback
I would like to call a CLI tool with os.system() by clicking a button. But my initial code does not work - it hangs.
Steps to reproduce
Code snippet:
import streamlit as st
import os
def call_cli():
os.system("...")
st.button("call cli",on_click=call_cli)