Skip to main content

IPyProgressBar

saythanks

A small package that provides an python-asynchronous progressbar widgets for use in Jupyter/IPython in conjunction with ipywidgets.

Why

Many times, when building a small dashboard on IPython there are functions that take some time to be executed but cannot be split into chunks, in the middle of which we could update a progress bar.

Since we want to give the user feedback that we are actually doing something and now he has to wait for a little, we can simply display the prototypical Loading....

However for some (most?) functions we may actually have a rough estimate of the time of wait and can make the wait a little more visual with a progressbar!

"Python-Asynchronous"

The progressbar needs to be updated (filled) while python is working on other things. (Yes we could parallelize it, but it seems a little of overkill).

We will create an HTML object with the progressbar and then let python trigger a small javascript snippet that during a specific interval time regularly updates the progressbar, while python goes on working on other tasks (like loading a dataset). That way, the task of rendering and updating the progressbar is fully delegated to the browser.

Usage

# Create the progress bar object (not the widget)
my_progressbar = AsyncProgressBar(time=2, description='Loading dataset:')

# Return the widget for display
display( my_progressbar.get_widget() )

# ...

# Trigger the progressbar
my_progressbar.run()

The object also has a hide() method, for a typical use case in which we just want a temporal progressbar:

my_progressbar.run()
function_that_takes_long()
my_progressbar.hide()

Contact

Created by: WillahScott

Metadata

Release files for ipyprogressbar 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ipyprogressbar 0.1.0
File Size Uploaded
ipyprogressbar-0.1.0.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ipyprogressbar 0.1.0
File Interpreter ABI Platform
ipyprogressbar-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.3 kB

Release files / ipyprogressbar-0.1.0.tar.gz

Download URL ipyprogressbar-0.1.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
711b681c6083be0dc51c8a52822ba71b27386d762f6e5392dfde03094b9aed52
BLAKE2b-256 checksum
How to use checksums
630e8020305db4a787335ecacb21239f4ddd8894e980f3b95b8aa998a81036de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ipyprogressbar-0.1.0-py3-none-any.whl

Download URL ipyprogressbar-0.1.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d516bf16efe8869e0c8feeec78c42c4fec58a090cf6e33493e2d636774696a0
BLAKE2b-256 checksum
How to use checksums
92b5bf3fe20eea69923d22c33d030f85d88e0a7c96ce2832919fd75472c99580
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.0.2

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page