Skip to main content
Question

How to Hide Source Code in a Published Streamlit App

  • September 18, 2024
  • 2 replies
  • 32 views

Forum|alt.badge.img+1

Hi,

Is there a way to completely hide or obscure the source code when publishing a Streamlit app? Specifically, I'm looking for best practices or solutions to ensure that end-users can only interact with the interface and not view or access the scripts.

2 replies

Dilini Fernando
Seasoned Practitioner
Forum|alt.badge.img+2
  • Seasoned Practitioner
  • 671 replies
  • September 18, 2024

Hi @msibs90,

I hope this documentation helps you. Once the application is published, applications are available under Custom apps in the Industrial tools workspace. Then the end user can only interact with the interface and not view or access the scripts.


Forum|alt.badge.img+1
  • Author
  • Committed
  • 4 replies
  • September 23, 2024

Hi @Dilini Fernando thank you. After publishing the Streamlit app, users are still able to view the underlying scripts by using the "Toggle Code" button. Is there a way to disable the "Toggle Code" button for specific user groups by configuring access controls or capabilities?


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings