Moved IPython widget/display import commands to ProgressBar.__init__, to be executed only if interactive mode is selected.