Skip to main content

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)

Source distribution for jupyter-popup 0.1.3
File Size Uploaded
jupyter_popup-0.1.3.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyter-popup 0.1.3
File Interpreter ABI Platform
jupyter_popup-0.1.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page