Jupyter-Beeper
A beep generator for Jupyter Notebooks (also IPython and Jupyter-Lab) that doesn't display a reproduction widget.
This library was created to solve an ongoing problem originated when creating multiple beeps with individual InvisibleAudio objects: even though the objects are displayed as blank widgets (and not the standard audio reproduction widget, with the playback controls), they still each take space thus disrupting the layout of the cell's output. This implementation uses a single display instance, updating it with a new InvisibleAudio object on each call to beep() but without changing the cell's output layout. A destructor was needed, in order to change the display instance back to a blank HTML object to prevent the sound from auto-playing every time the notebook is opened (given that the invisible widget is stored and functional on the cell's output).
Usage
import jupyter_beeper
b = jupyter_beeper.Beeper()
# Default config is frequency=440 Hz, secs=0.7 seconds, and
# blocking=False (b.beep() will return when the sound begins)
b.beep()
# We have to put a sleep statement, since the previous call
# for b.beep() is non blocking, and then it will overlap with
# the next call to b.beep()
time.sleep(2)
# This will not return until the beep is completed
b.beep(frequency=530, secs=0.7, blocking=True)
Metadata
Release files for Jupyter-Beeper 1.0.3
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 |
|---|---|---|---|---|
| Jupyter-Beeper-1.0.3.tar.gz | 2.5 kB | Without provenance | Details for Jupyter-Beeper-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Jupyter_Beeper-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for Jupyter_Beeper-1.0.3-py3-none-any.whl |
Total release size: 6.4 kB
Release files / Jupyter-Beeper-1.0.3.tar.gz
| Download URL | Jupyter-Beeper-1.0.3.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63008ab149d52d9e22ca697fbb1fb4d161f4609f5a0ce599a8b7c9629c8b5832
|
|
BLAKE2b-256 checksum How to use checksums |
6ba4ae3bdd23fa6e5d5d4ae8e049229468d8f9a8663b82cdc507037087a4c665
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Release files / Jupyter_Beeper-1.0.3-py3-none-any.whl
| Download URL | Jupyter_Beeper-1.0.3-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07f485b7f2058c2d9f12a262ca8fb810a44ec3c9562bfb7a26c6f9a4944e3232
|
|
BLAKE2b-256 checksum How to use checksums |
7751b814db4b31ba42f20d90cec5f6df282db8c451556f7a2c02ea34e366b198
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Security for Jupyter-Beeper 1.0.3
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.