How to save sampling progress to log

The nohup command (nohup python pymc_model.py >run.log&) does not output the sample progress bar to the log file. How can I handle it? Any advice is appreciated!

It seems that can be solve :

from fastprogress import fastprogress
fastprogress.printing = lambda: True