A package for displaying a multi-color task progress bar in Jupyter.
Project description
TaskProgressBar
TaskProgressBar is a Python package designed for visualizing task progress in Jupyter Notebooks. It provides a colorful and intuitive display of multiple task statuses, such as pending, ongoing, success, failed, and cached. The package leverages ipywidgets to create dynamic, real-time updating progress bars.
This project is created with the help of GPT-4.
Features
- Visual Feedback: Instant visual feedback on the progress of multiple tasks.
- Color-Coded: Tasks are color-coded based on their status for quick assessment.
- Customizable: Easy to customize labels, update intervals, and status display order.
Installation
Install TaskProgressBar by running the following command in your Python environment:
pip install ipywidgets
pip install taskprogressbar
Ensure that you have ipywidgets installed and enabled in your Jupyter environment to use TaskProgressBar. Usage
Here is a simple example of how to use TaskProgressBar:
from taskprogressbar import TaskProgressbar
# Create a list of task identifiers
task_ids = ['task1', 'task2', 'task3', 'task4']
# Initialize the progress bar with tasks as pending status
progress_bar = TaskProgressbar(task_ids)
# Display the progress bar in a Jupyter Notebook
progress_bar.display()
# Example: Update task statuses
progress_bar.update_task_status('task1', 'ongoing')
progress_bar.update_task_status('task2', 'success')
progress_bar.update_task_status('task3', 'failed')
progress_bar.update_task_status('task4', 'cached')
This will display a progress bar in your Jupyter notebook, updating in real-time as tasks change status.
Contributing
Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change.
Please ensure to update tests as appropriate.
License
Distributed under the MIT License. See LICENSE for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file taskprogressbar-1.2.tar.gz.
File metadata
- Download URL: taskprogressbar-1.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26c80e1071588d79a57f2c3f6cf9c2b22de3367ad5dab6faaa1435c6bd85a2a8
|
|
| MD5 |
09bb8ffc60f6d2e2c38d95ea6ae2558c
|
|
| BLAKE2b-256 |
b7a9cb90a7caff14e75b137d561fc7f101d77b351f3b91bf5d27fa13ca05de5b
|
File details
Details for the file taskprogressbar-1.2-py3-none-any.whl.
File metadata
- Download URL: taskprogressbar-1.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f17e0e1b96310e69fafcb25b5f2446c354937457394e54ab0ca7d0c9878c42f5
|
|
| MD5 |
ed86edd08c157514c23c89ad6465cbe1
|
|
| BLAKE2b-256 |
62ba5a943a025821e856421b32a210aa488e725e079c28f3a2cc9f1874b8bc63
|