Streampit application runs multiple times on startup

Hey everyone,

in the application I’m currently working on I observe that the program runs multiple times on startup. This behavior even occurs when starting the simplest possible program (print statement is executed multiple times):

import streamlit as st

print("new run")

When refreshing the page, the print statement is executed once (as expected).

I’m using

  • streamlit 1.27.2 (running on localhost)
  • Python 3.9.17

Is there any solution for this β€œbug”/problem?

Thank you!