hot reloading flask

  1. Install Flask using pip: pip install Flask
  2. Create a new Python file, e.g.,, and write your Flask application code.
  3. Set the environment variable FLASK_APP to the name of your Python file: export (on Windows, use set
  4. Enable debug mode to allow hot reloading: export FLASK_ENV=development (on Windows, use set FLASK_ENV=development).
  5. Run the Flask application: flask run. This will start the Flask development server with hot reloading enabled.