probcomp / cgpm

Library of composable generative population models which serve as the modeling and inference backend of BayesDB.
Apache License 2.0
25 stars 11 forks source link

Fix state._progress to write to stdout, not prin #213

Closed fsaad closed 7 years ago

fsaad commented 7 years ago

In Jupyter notebooks (version notebook==5.0.0), new lines are printed when print is called among multiple process via parallel_map.

image

where _progress above is the same code as State._progress. The solution is probably to change the print statement to sys.stdout.write. Make sure to do the same for lovecat progress.