I would like to simply print a \"hello world\" to the python console after /button is called by the user.
This is my naive approach:
@app.route(\'/button
I think the core issue with Flask is that stdout gets buffered. I was able to print with print('Hi', flush=True). You can also disable buffering by setting the PYTHONUNBUFFERED environment variable (to any non-empty string).
print('Hi', flush=True)
PYTHONUNBUFFERED