← Useful Tips
Python / DataPython

python -u script.py: Disable Python output buffering for live logs

Use python -u script.py to disable Python output buffering for live logs. It improves repeatability and debugging in Python and data workflows.

python -u script.py

Why it helps

Use python -u script.py to disable Python output buffering for live logs. It improves repeatability and debugging in Python and data workflows.

How to use it

  1. Open the relevant app or terminal.
  2. Use the shortcut or command above in the relevant context.
  3. Check the result; for commands that change data, test on a small example first.
People also search for
python -u script.py: Disable Python output buffering for live logspython -u script.pydisable python output buffering for live logshow to disable python output buffering for live logsPython / Data disable python output buffering for live logs

Related tips