Skip to main content

A Dash Component that catches a the window close event and updates it's status. This can be used to stop the Dash server when the user closes his window, which is useful when using Dash apps as part of a multi step a workflow.

Project description

DashWindowCloseListener

DashWindowCloseListener is a Dash component library that allows you to listen to the browser window close event. This can be used to stop the Dash server when the user closes his window, which is useful when using Dash apps as part of a multi step a workflow.

This is illustrated in the following example:

Get started with:

  1. Install Dash and its dependencies: pip install -r requirements.txt(https://dash.plotly.com/installation)
  2. Run python usage.py
  3. Visit http://localhost:8050 in your web browser
  4. When closing the browser window, the dash server will stop.

Contributing

See CONTRIBUTING.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dwcl-1.0.3.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

dwcl-1.0.3-py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page