llama-openai-demo / data /kb /FAQ /streamlit-watch-changes-other-modules-importing-app.md
eagle0504's picture
app updated
746d2f1

A newer version of the Streamlit SDK is available: 1.48.1

Upgrade
metadata
title: >-
  How can I make Streamlit watch for changes in other modules I'm importing in
  my app?
slug: >-
  /knowledge-base/using-streamlit/streamlit-watch-changes-other-modules-importing-app

How can I make Streamlit watch for changes in other modules I'm importing in my app?

By default, Streamlit only watches modules contained in the current directory of the main app module. You can track other modules by adding the parent directory of each module to the PYTHONPATH.

export PYTHONPATH=$PYTHONPATH:/path/to/module
streamlit run your_script.py