Skip to main content

A lightweigth progressbar for jupyter notebook

Project description

nbprogress

Progressbar for Jupyter notebooks packaged as a pip package. (ref: https://github.com/kuk/log-progress)

Important to enable enable ipythonwidgets by running

jupyter nbextension enable --py widgetsnbextension

for jupyterlab

jupyter labextension install @jupyter-widgets/jupyterlab-manager

Use:

pip install nbprogress
import time
import nbprogress
for i in nbprogress.log(range(1,10), every=1):
    time.sleep(1)

gifs/nbprogress1.gif

import os
import glob
import time
import nbprogress

input_dir = os.getcwd()
files = glob.glob(os.path.join(input_dir, '*'))

for file in nbprogress.log(enumerate(files), every=1, size=len(files)):
    time.sleep(1)

gifs/nbprogress12.gif

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nbprogress-0.1.4.tar.gz (2.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page