Skip to main content

✨ panel-modal

We want to make it easy to use modals with Panel on both the server and in the notebook.

A modal is an element that displays in front of and deactivates all other page content. Panel already includes a modal. But it only works if you using a template on a server. It does not work in the notebook.

You can install and use the package as simple as.

pip install panel-modal
import panel as pn

from panel_modal import Modal

pn.extension()

modal = Modal(pn.panel("Hi. I am the Panel Modal!", width=200))

pn.Column(modal.param.open, modal).servable()

Panel Modal in Notebook

Check out the api section below and the examples folder for more details.

Project Intro

Api

Parameters

  • objects : The objects to display in the modal. You can define the size of the modal if you wrap the objects in a layout like a Column.
  • is_open: Whether or not the modal is open. Set this to True to open the modal.
  • show_close_button: Whether to show a close button in the modal.
  • style: The css styles applied to the modal.

Events

  • open: Trigger this to open the modal.
  • close: Trigger this to close the modal.

🚀 Get started in under a minute

Install panel-modal including the examples dependencies.

pip install  panel-modal[examples]

Explore the sample apps

pn hello panel-modal

You can now find the reference and gallery notebooks in the examples/awesome-panel/panel-modal folder. Check them out by running jupyter lab.

📒 Explore the examples online

Click one of the buttons

nbviewer Binder

⭐ Support

Please support Panel and awesome-panel by giving the projects a star on Github:

Thanks

❤️ Contribute

If you are looking to contribute to this project you can find ideas in the issue tracker. To get started check out the DEVELOPER_GUIDE.

I would love to support and receive your contributions. Thanks.

Hacktober Fest.

Monitor

PyPI version Downloads Python Versions License Test Results

Metadata

Release files for panel-modal 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for panel-modal 0.4.0
File Size Uploaded Provenance Actions
panel-modal-0.4.0.tar.gz 9.5 kB Without provenance Details for panel-modal-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for panel-modal 0.4.0
File Interpreter ABI Platform Actions
panel_modal-0.4.0-py3-none-any.whl Python 3 none any Details for panel_modal-0.4.0-py3-none-any.whl

Total release size: 16.7 kB

Release files / panel-modal-0.4.0.tar.gz

Download URL panel-modal-0.4.0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d5be8c37d740f9768bad7bb54b61e7243c2b74cb552978d9d97d3886549c9700
BLAKE2b-256 checksum
How to use checksums
f658ab3dd82fb8534b2432bef62b08b3005bda0b9e5010d11e8a6b4bf645f6d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / panel_modal-0.4.0-py3-none-any.whl

Download URL panel_modal-0.4.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8fcf65bf4a02ff365813912f5cbc025e43334ac572b9fb4c048b5f314e878c9
BLAKE2b-256 checksum
How to use checksums
ca1d1739c27ff77d8b46686460531c2abf81e4b47fa56d9159f550af48f5f22d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Security for panel-modal 0.4.0

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.

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