title: Python ProgressBar tqdm
body: <p>I want to have a progressBar wrapper object from the tqdm object which is disabled by default and can be enabled by condition. Furthermore it should work in console and jupyter notebook/lab/ipython. Therefore tqdm has a auto detection. I wrote a class:</p>
  
  <pre><code>class ProgressBar(object):
      import time
      import numpy as np
      from tqdm import tnrange
      from tqdm.auto import tqdm
      def __init__(self,maxValue,minValue=0):
          self.minValue=minValue
          self.maxValue=maxValue
          self.progressBar = self.createProgressBar()
      def updateBar(self,updatedValue):
          self.progressBar.update(updatedValue)
      def createProgressBar(self):
          bar = tqdm(total=self.maxValue,desc='Loading:',disable=True)
          return bar
  </code></pre>
  
  <p>But if i want to have access to the bar </p>
  
  <pre><code>a = ProgressBar(1000)
  a.progressBar.disable=False
  while True:
      fileEvaluated = np.random.randint(4,size=1)[0]
      a.updateBar(fileEvaluated)
      time.sleep(0.5)
  </code></pre>
  
  <p>i get an error message:</p>
  
  <pre><code>AttributeError: 'tqdm_notebook' object has no attribute 'sp'
  </code></pre>
  
  <p>Any idea what im doing wrong?</p>