Skip to main content

dash-react-scan-plugin

GitHub PyPI Ruff

English | 简体中文

A plugin to monitor the rendering performance of page components for Dash applications using Dash Hooks. This plugin integrates react-scan to help you analyze and optimize your Dash application's performance.

Installation

pip install dash-react-scan-plugin

Usage

from dash import Dash

# Import the react scan plugin
from dash_react_scan_plugin import setup_react_scan_plugin

# Enable the react scan plugin for the current app
setup_react_scan_plugin()

app = Dash(__name__)

# Rest of your app code...

Example

Run the included example. This example demonstrates how to use react-scan to monitor component rendering performance in your Dash application. The plugin will automatically inject the react-scan tool into your application, allowing you to visualize and analyze component re-renders.

python example.py

API Reference

setup_react_scan_plugin()

This function sets up the react-scan plugin for your Dash application.

Parameter Type Default Description
script_src str "https://cdn.jsdelivr.net/npm/react-scan@latest/dist/auto.global.js" Source URL of the react-scan script. Alternative CDNs: https://unpkg.com/react-scan@latest/dist/auto.global.js, https://registry.npmmirror.com/react-scan/latest/files/dist/auto.global.js

Metadata

Release files for dash-react-scan-plugin 0.1.1

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

Source distribution (sdist)

Source distribution for dash-react-scan-plugin 0.1.1
File Size Uploaded
dash_react_scan_plugin-0.1.1.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dash-react-scan-plugin 0.1.1
File Interpreter ABI Platform
dash_react_scan_plugin-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / dash_react_scan_plugin-0.1.1.tar.gz

Download URL dash_react_scan_plugin-0.1.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ad3083f328e710f21ccc9af56b15c839a06cc3bd63dc8fe9e776f4731f8c6523
BLAKE2b-256 checksum
How to use checksums
961296b434a8641bfa51eafe3d66d858853b08efb078a887709b497203b91a36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.18

Release files / dash_react_scan_plugin-0.1.1-py3-none-any.whl

Download URL dash_react_scan_plugin-0.1.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64018eddd288f18446d8b91c8274f62307b0126847d98c3797593e108a8916ba
BLAKE2b-256 checksum
How to use checksums
cff360f29600982319fc253595b88078d812d6dacbc107557ed7a42b0a5461e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.18

Release history Release notifications | RSS feed

This release

0.1.1 This release

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