nteract/papermill

\r characters replaced by \r\n

Open

#722 aperta il 27 apr 2023

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Python (402 fork)batch import
bughelp wanted

Metriche repository

Star
 (5381 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

🐛 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.

Guida contributor