Hello @mozartfish, welcome to the forum
I can see two Github issues that could be of interest :
Can you add a more detailed view of how you would imagine this, and eventually signal your interest to contribute on whichever issue is the closest to you ? Thanks !
What I mean by more detailed is some behaviors you’d like to keep in the standalone HTML. For example, do you only need exporting all Markdown/sidebar/Altair/Plotly/Matplotlib widgets as HTML/images, or also would need for example handling every interactive Streamlit widget (example, text input and using its value to rebuild a new Altair chart, which my 2 cents doesn’t look immediately possible because we lose the Python processing in the pure standalone HTML process) ?