Hi, it seems that the progress bar from rich cause problems in Snakemake DAG visualization.
Using python print function in the Snakefile will cause this error: https://github.com/snakemake/snakemake/issues/135
Suggesstion
I think the common thing to do is instead using print, we can direct the ouput to stderr. Is it possible to do this for the progress bar?
From rich documentation:
Redirecting stdout / stderr
To avoid breaking the progress display visuals, Rich will redirect stdout and stderr so that you can use the built-in print statement. This feature is enabled by default, but you can disable by setting redirect_stdout or redirect_stderr to False
Hi, it seems that the progress bar from
rich
cause problems in Snakemake DAG visualization. Using pythonprint
function in the Snakefile will cause this error: https://github.com/snakemake/snakemake/issues/135In the Snakefile, using:
or
Will generate this progress bar: https://github.com/pepkit/peppy/blob/ca8aa90c161dee0d515cf54c9451081734323d7f/peppy/project.py#L631-L643
This behaviour will break:
Suggesstion I think the common thing to do is instead using
print
, we can direct the ouput tostderr
. Is it possible to do this for the progress bar?From
rich
documentation: