Skip to main content
Question

How to Hide Source Code in a Published Streamlit App

  • September 18, 2024
  • 2 replies
  • 48 views

msibs90
Committed
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
  • 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.


msibs90
Committed
Forum|alt.badge.img+1
  • Author
  • Committed
  • 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?