Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (16.4k points)

I am utilizing tqdm to print progress in the content I'm running in a Jupyter notebook. I am printing all messages to the terminal through tqdm.write(). But still, this actually gives me slanted output like so: 

That is, each time another line must be printed, another progress bar is imprinted on the following line. This doesn't occur when I run the script by means of the terminal. How might I tackle this?

1 Answer

0 votes
by (26.4k points)

Instead of using tqdm, You can use tqdm.notebook.tqdm, as mentioned here.

Your code look like this:

from tqdm.notebook import tqdm

Interested to learn python in detail? Come and Join the python course.

Browse Categories

...