'Update progress bar via the console or notebook accordingly.'

def update(self, value=None):

    if (value is None):
        value = (self._current_value + 1)
    self._current_value = value
    if self._ipython_widget:
        self._update_ipython_widget(value)
    else:
        self._update_console(value)
