Code behind a published report

Can you view the code for a published report if you can only access the published end result? Any thoughts on adding this as a permissioned feature in the hamburger menu?

Welcome to the community @Koen!

We already provide a similar functionality with st.echo, which allows for the app developer to choose portions of the code to share. In the streamlit hello demo project, we show how this can be used with a toggle to show/hide code as you desire.

But in terms of making this a feature of the hamburger menu, it doesnโ€™t sound like this would be very secure, even behind a permissioning system. Especially where the app developer can already choose to use st.echo or show you the source code if they choose. What use cases are you imagining?

Best,
Randy

1 Like

Thanks @randyzwitch! The use case would be that youโ€™d want to keep the Streamlit app looking clean with no code, but for other users a peak behind the Streamlit app might help them fork the code. We deploy apps internally at our company, so not worried about security. Let me know if Iโ€™m missing something. Def. not a must have. In our case, the file behind Streamlit app can be shared by the owner in the UI of the cloud file management system.

1 Like

Yeah, in a secure environment maybe itโ€™s reasonable.

Iโ€™m certainly not the final arbiter of ideas, so if this functionality is important to you, please fill out a feature request and one (or more!) of our engineers will work through the idea with you to determine its viability.

Best,
Randy