question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do I not show the streamlit app?

See original GitHub issue

Hi,

I know this exists but can’t find it anywhere on the internet: If I want to not show my st.write() statements and everything else, what is the method for that?

Thank you!!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jrhonecommented, Feb 12, 2020

Hi @ssimontacchi ,

Perhaps you could wrap your st.write calls in a function and use a flag to determine whether to execute them or not?

import streamlit as st

ENV = 'dev'  # get from configuration

def maybe_write(*args, **kwargs):
    if ENV != 'prod':
        st.write(*args, **kwargs)

maybe_write('show me in development')
0reactions
arraydudecommented, Apr 22, 2020

I will be closing this as we don’t have any new comment, but if you need it please reopen it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage your app - Streamlit Docs
To wake the app up, press the "Yes, get this app back up!" button. This can be done by anyone who wants to...
Read more >
How to Hide Menu & Customize The Footer in Streamlit Apps
‍ Machine Learning in Python:https://www.udemy.com/course/machine-... If you liked the video don't forget to leave a like or subscribe ...
Read more >
python - I can't locally launch the streamlit app through jupyter ...
Move ipykernel_launcher.py to your webapp dir and try running it from there lets see. If you still get the same error massage, press...
Read more >
3 Easy Ways to Deploy your Streamlit Web App Online
Not too long ago, deploying even a simple web app to the cloud requires extensive app ... Here I have entered a few...
Read more >
Introduction to Streamlit and Streamlit Components - Auth0
This article will show you how to build Streamlit apps and custom Streamlit Components, with the end goal of implementing Auth0 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found