jupyter-popup
A simple and reliable popup/modal solution for Jupyter notebooks that works in remote environments.
Installation
pip install jupyter-popup
Usage
from jupyter_popup import create_popup
# Simple usage
create_popup("This is a test message", "Title")
# With HTML content
html_content = """
<div style='line-height: 1.6'>
<h3>Important Information</h3>
<p>This is formatted content.</p>
</div>
"""
create_popup(html_content, "HTML Content")
# If using with IPython display and button call backs
import ipywidgets as widgets
from IPython.display import display
from jupyter_popup import create_popup
output = widgets.Output()
def message():
create_popup("My awesome pop up")
def test_popup():
with output:
message()
test_button = widgets.Button(description="Test")
test_button.on_click(lambda b: test_popup())
display(test_button)
display(output)
Features
- True fixed positioning that works in remote Jupyter environments
- Proper handling of long content with scrolling
- Works with HTML content
- Doesn't interfere with notebook layout
- Proper contrast and visibility in both light and dark themes
- Version 0.1.2 works within a IPython app with button callbacks
Requirements
- Python ≥ 3.6
- IPython ≥ 7.0.0
License
MIT
Metadata
Release files for jupyter-popup 0.1.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_popup-0.1.3.tar.gz | 3.7 kB | Without provenance | Details for jupyter_popup-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jupyter_popup-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for jupyter_popup-0.1.3-py3-none-any.whl |
Total release size: 7.8 kB
Release files / jupyter_popup-0.1.3.tar.gz
| Download URL | jupyter_popup-0.1.3.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
991f90a3afdd53d476d1b9bfed60018eeb41440209af876e21c255bc546d4e2f
|
|
BLAKE2b-256 checksum How to use checksums |
2de9c0813cee97896ecf4316dd80c9be17364eab6b6baa2958aaf94595359a47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / jupyter_popup-0.1.3-py3-none-any.whl
| Download URL | jupyter_popup-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cced2024485aa46430d4ef1102613cce10bf8d67b62f6bc1fb9dda546c1fc7aa
|
|
BLAKE2b-256 checksum How to use checksums |
d508c2767a2256d95bc0f3ad76856e2ac4490375fc6aca0af5b1a5cd1bf4065d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for jupyter-popup 0.1.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.