This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.1.4 instead.
NBAnim
NBAnim is a Python utility designed to display image sequences as animations within a Jupyter Notebook. It provides a simple interface to control the playback of image sequences, including play, pause, stop, and adjust the animation speed, making it ideal for visual demonstrations and presentations.
Features
- Play, pause, and stop animations.
- Navigate through image frames with next and previous controls.
- Adjust animation speed dynamically.
- Easy integration with Jupyter Notebooks.
Installation
NBAnim can be installed using pip, by cloning the repository, or directly from GitHub. Below are instructions for each method:
Using pip
To install NBAnim directly using pip, execute the following command in your terminal:
pip install nbanim
Cloning the Repository
If you prefer to install NBAnim by cloning the repository, first ensure you have git installed on your system. Then, run the following command:
git clone https://github.com/syedhamidali/nbanim.git
cd nbanim
pip install .
This will clone the repository to your local machine and install it using pip.
Directly from GitHub
You can also install the latest version of NBAnim directly from GitHub using pip:
pip install git+https://github.com/syedhamidali/nbanim.git
This method is useful if you want to install the very latest version that may include changes not yet published to PyPI.
Requirements
NBAnim requires the following to run:
- Python 3.6+
- IPython
- ipywidgets
Please make sure you have these requirements installed before installing NBAnim.
Example Usage 1
Here is a simple example of how to use NBAnim to display an animation in a Jupyter Notebook:
from nbanim import NBAnim
# List of image file paths for the frames of your animation
frames = ['path/to/frame1.png', 'path/to/frame2.png', 'path/to/frame3.png']
# Create an instance of NBAnim with the frames and optionally set the animation speed
anim = NBAnim(frames, animation_speed=0.5)
Example Usage 2
import glob
from nbanim import NBAnim
# List of image file paths for the frames of your animation
frames = sorted(glob.glob("~/Downloads/*png"))
# Create an instance of NBAnim with the frames and optionally set the animation speed
anim = NBAnim(frames, animation_speed=0.5)
The animation controls will be displayed automatically in the Jupyter Notebook
In this example, replace 'path/to/frame1.png', 'path/to/frame2.png', and 'path/to/frame3.png' with the actual paths to your image files. The NBAnim class takes care of displaying the images and providing a user interface for controlling the animation directly within the notebook.
Metadata
Release files for nbanim 20240727162435
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nbanim-20240727162435.tar.gz | 4.1 kB | Without provenance | Details for nbanim-20240727162435.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nbanim-20240727162435-py3-none-any.whl | Python 3 | none | any | Details for nbanim-20240727162435-py3-none-any.whl |
Total release size: 8.4 kB
Release files / nbanim-20240727162435.tar.gz
| Download URL | nbanim-20240727162435.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97a54e298411436d86d641f38c0ffe4ddcc75e364d37b8070ecf5b1278d63493
|
|
BLAKE2b-256 checksum How to use checksums |
8c89837d8a4ad0e351b91ee8b1b34a36e26e19e4ccfb91389026c1eefc00c7ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / nbanim-20240727162435-py3-none-any.whl
| Download URL | nbanim-20240727162435-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d508c86e848c1ce9de259535a74bdc974dd5e0ae932e40ef8644d69ce7e75588
|
|
BLAKE2b-256 checksum How to use checksums |
1b7fdb94a6f8a87899101283fdef83b89b805c2efa1b47aea6a763a9b93da778
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for nbanim 20240727162435
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.