notebook.cpython-312.pyc•11.6 kB
�
lMg�* � �H � d Z ddlZddlZddlmZ ddlmZ ddlmZ dZ
ddlZdZ
e
dk( rddlmZ dd
lmZ ddlmZ dZ
nddlmZ dd
lmZ ddlmZ ddlmZ dg d�iZg d�ZdZ G d� de� Z G d� de � Zd� Z eZe Z!y# e$ rZ dZ
ddl
Z
e
j � 5 e
j d d
�� ddlmc mZ n# e$ r Y nw xY wddd� n# 1 sw Y nxY wY ��w xY w# e$ r* ddlmZ ddlmZ ddlmZ dZ
n# e$ r dZ
dZeZY nw xY wY ��w xY w# e$ r Y ��w xY w)z�
IPython/Jupyter Notebook progressbar decorator for iterators.
Includes a default `range` iterator printing to `stderr`.
Usage:
>>> from tqdm.notebook import trange, tqdm
>>> for i in trange(10):
... ...
� N)�escape)�proxy� )�tqdm� � �ignorez2.*The `IPython.html` package has been deprecated.*)�message)�HTML)�
FloatProgress)�HBox� )�ContainerWidget)�FloatProgressWidget� )�displayzgithub.com/)�lrq3000� casperdcl�alexanderkuk)�
tqdm_notebook�tnranger �trangez|IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.htmlc �2 � � e Zd ZdZdd�Zd� fd� Zd� Z� xZS )�TqdmHBoxz.`ipywidgets.HBox` with a pretty representationc �P � t | dd � }|�i S |j }|�| |d<