Streamlit with python

how do i execute another python file when i press a title i created as a tab

Maybe something like this

import os
import streamlit as st

if st.button("Execute"):
    os.sys("python new_script.py")

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.