Skip to content
TheChatArchiveThe Chat Archive
Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)Hugging Face OpenAssistant Conversations (oasst2)

How to use tqdm in databricks?

In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
  1. User

    How to use tqdm in databricks?

  2. 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:

    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.

  3. User

    This should serve perfectly - Thank you.

  4. Assistant

    Not a problem, if there's anything else I can help with please don't hesitiate to ask!

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.