Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

tqdm_notebook is not working in CDSW Notebook

Highlighted

tqdm_notebook is not working in CDSW Notebook

New Contributor

Hi,

 

when I try to use the python package tqdm for progressbar visualisation it does not work! Does anybody have a solution?

 

/home/cdsw/.local/lib/python3.6/site-packages/tqdm/__init__.py in tqdm_notebook(*args, **kwargs)
     17     """See tqdm._tqdm_notebook.tqdm_notebook for full documentation"""
     18     from ._tqdm_notebook import tqdm_notebook as _tqdm_notebook
---> 19     return _tqdm_notebook(*args, **kwargs)
     20 
     21 

/home/cdsw/.local/lib/python3.6/site-packages/tqdm/_tqdm_notebook.py in __init__(self, *args, **kwargs)
    174         # self.sp('', close=True)
    175         # Replace with IPython progress bar display (with correct total)
--> 176         self.sp = self.status_printer(self.fp, self.total, self.desc)
    177         self.desc = None  # trick to place description before the bar
    178 

/home/cdsw/.local/lib/python3.6/site-packages/tqdm/_tqdm_notebook.py in status_printer(_, total, desc)
     96             pbar = IntProgress(min=0, max=total)
     97         else:  # No total? Show info style bar with no progress tqdm status
---> 98             pbar = IntProgress(min=0, max=1)
     99             pbar.value = 1
    100             pbar.bar_style = 'info'

NameError: name 'IntProgress' is not defined

 

tqdm has a "notebook version" method called tqdm_notebook but it throws this error:

I would guess this a problem caused by the CDSW notebook.. 

 

Best,

Vitali 

1 REPLY 1

Re: tqdm_notebook is not working in CDSW Notebook

Master Collaborator

It looks like you didn't install some package that your notebook requires.

Don't have an account?
Coming from Hortonworks? Activate your account here