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
Hashes for taskprogressbar-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8bcb3220c81e117d6d73ca45d332601b48dd1336d943dbc97fe3c859026c144 |
|
MD5 | f3b519ce4c5a3610ac65210db065b3c5 |
|
BLAKE2b-256 | 0f102c33ef4367c31d4cf3b75a933582ecacbaf7e43475621290732a22cdd016 |