nteract/papermill

\r characters replaced by \r\n

Open

#722 opened on Apr 27, 2023

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Python (402 forks)batch import
bughelp wanted

Repository metrics

Stars
 (5,381 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

🐛 Bug

Consider the following cell: image When running normally (i.e., through interactive python), each time a new line is printed, the \r put the cursor back to the start of the line which is replaced by the next print, and the final output of the cell should be only the last print: Hello World! 20

However if I use papermill to run the notebook with I get the following output: image

This is also affecting tdqm progress bar which output becomes an unreadable mess: image

Is someone else encountering the issue ? I'm using it inside a Docker installation.

Contributor guide