72182447-1ccc-487a-9e32-bb018448f00a
prompter
How to use tqdm in databricks?
a9cb52c8-f5e7-48ae-8c39-e3a549c1776f
72182447-1ccc-487a-9e32-bb018448f00a
assistant
You can install tqdm into Databricks just like you would locally - using PyPI and pip.
So in a notebook cell, run:
pip install tqdm

Then you can import and use tqdm as normal:
```python
from tqdm import tqdm
for i in tqdm(range(10000)):
    ...
```

Databricks has PyPI access, so this will download and install tqdm (and its dependencies) correctly.
The one slight caveat is that tqdm uses some terminal features to get a progress bar. In a notebook this falls back to just printing . characters - so you get a basic progress indicator but no bar. For most use cases this is sufficient though, and allows the useful tqdm features like auto-scaling eta and progress percentages.
651dd567-d684-48e5-a1d7-e104ad2c68bc
a9cb52c8-f5e7-48ae-8c39-e3a549c1776f
prompter
This should serve perfectly - Thank you.
e4448bf0-b960-41bc-abff-1d83233d1543
651dd567-d684-48e5-a1d7-e104ad2c68bc
assistant
I am glad I could be of service.