Hi everybody
I am building an app for local usage only.
I am using ‘os.system()’ for running my workflow via linux command lines
It’s only for allowing my colleges to run bioinformatics programs using a nice interface.
The output is saved in local directories.
A step of the workflow is dna reads QC. The output is saved in a local directory in html format.
I would like to create a button to display the render fot each sample:
My problem is I can’t use ‘st.button’ because I don’t want the page refreshed after each click, and I want the user be able to see the output of a sample while the app still running the workflow (it can be a very very long workflow), in order to know if letting the app running or aborting it.
So I tried with the 'st.markdown:
st.markdown(
f"""
<button onclick= "{webbrowser.open(path)} " > Open </button>
""", unsafe_allow_html=True
)
The problem is the function is launched when the widget is created, without any click.
I will appreciate your precious help
Thank you!