Skip to main content

Dash Devtools Plus logo

Dash Devtools Plus

PyPI version Python versions CI status MIT License

A Dash development and debugging enhancement plugin ✨, powered by Dash Hooks.

English | 简体中文

✨ Dash Devtools Plus adds a focused drawer to Dash's native Dev Tools: trace callbacks, inspect components, capture state, understand direct imports, watch server resources, collect runtime context, and tailor the toolbar—all while keeping the running app in view. It is available only in an explicitly debug-enabled Dash session, so development metadata stays out of ordinary production use.

🚀 Open Devtools Plus

Start a Dash application in debug mode, then select Devtools Plus from the native toolbar in the lower-right corner. The drawer opens over the application, ready for a closer look.

Dash Devtools Plus main panel in English

⚡ Quick start

pip install dash-devtools-plus -U

After installation, Dash automatically discovers and registers Devtools Plus through its dash_hooks entry point. No dash_devtools_plus import or configure_devtools_plus() call is needed when the default settings are sufficient.

from dash import Dash, html

app = Dash(__name__)
app.layout = html.Div("Hello, Dash Devtools Plus")

if __name__ == "__main__":
    app.run(debug=True)

The panel appears only when debug mode and Dash's native Dev Tools UI are both enabled. To override the defaults, call configure_devtools_plus() before creating the Dash instance.

For full installation notes, see Quick start.

🧭 Workspaces

Workspace What it provides Documentation
Callback relationships Searchable callback graph data, source locations, role lists, docstrings, and execution metadata. Open guide
Server resource monitor Live CPU, memory, disk, and host/runtime information. Open guide
Component inspector Click a rendered page element and map it to its Dash component, layout path, and current props. Open guide
State snapshots Capture selected component props and restore them within the current browser tab. Open guide
Imported dependencies Direct project imports grouped as standard library, Dash components, Dash Hooks, or other libraries. Open guide
Toolbar skins Preview and apply native Dash Dev Tools toolbar and error-display themes. Open guide
Runtime environment Collect essential Python, system, browser, and third-party package versions, then copy an issue-ready report. Open guide

⚙️ Optional configuration

Use configure_devtools_plus() only when you need to override the defaults, such as the language, accent color, editor, or project roots.

from pathlib import Path
from dash_devtools_plus import configure_devtools_plus

configure_devtools_plus(
    default_locale="en",
    accent_color="#119DFF",
    editor="vscode",
    project_root=Path(__file__).resolve().parent,
)
Parameter Default Summary
default_locale "en" Initial interface language: "en" or "zh-CN".
accent_color "#119DFF" Primary UI accent color.
editor "vscode" Preferred source editor: "vscode", "cursor", "pycharm", or None.
project_root None Existing project directory used as the server-side source and direct-import boundary.
editor_project_root None Editor-visible root when the browser/IDE and Dash server use different paths.

See Configuration for behavior, validation rules, and container-to-local editor examples.

🧪 Example applications

Four applications in examples/ cover increasingly complex use cases:

Example Focus Run
simple One server callback and one clientside callback. python examples/simple/app.py
intermediate A travel-budget planner built with Dash core components. python examples/intermediate/app.py
comprehensive A large callback laboratory for acceptance testing all workspaces. python examples/comprehensive/app.py
fastapi A WebSocket-powered server-time stream with FastAPI APIs. python examples/fastapi/app.py

They share port 8050; run one at a time. Read Example applications before using the comprehensive callback laboratory.

FastAPI backend

Dash's FastAPI backend requires Dash 4.2 or later. Install the optional extra, then construct Dash with backend="fastapi" or provide an existing FastAPI server:

pip install "dash-devtools-plus[fastapi]"

See the fastapi example for a small server-time stream that uses websocket_callbacks=True, ctx.websocket.get_prop, and set_props, alongside custom asynchronous FastAPI APIs.

🛠️ Development

Use the project environments described by the repository setup, then run:

python -m pytest
npm run test:frontend
npm run build

Python code is checked with Ruff:

ruff check .
ruff format --check .

The frontend build writes distributable assets to dash_devtools_plus/assets/; commit those generated files whenever frontend source changes.

🗺️ Documentation map

📄 License

Released under the MIT License.

Release files for dash-devtools-plus 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 dash-devtools-plus 0.1.3
File Size Uploaded
dash_devtools_plus-0.1.3.tar.gz 739.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dash-devtools-plus 0.1.3
File Interpreter ABI Platform
dash_devtools_plus-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 1.5 MB

Release files / dash_devtools_plus-0.1.3.tar.gz

Download URL dash_devtools_plus-0.1.3.tar.gz
Size 739.9 kB
Tags Source
SHA-256 checksum
How to use checksums
539eaf1ee2d06d7a8a27e68979eb84f315c3d667d02adea3ce8cb83569dcce64
BLAKE2b-256 checksum
How to use checksums
5c7c4970adec1964db8751204b91c50ab9b9ab84b2b6b451fd445ae061398b87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / dash_devtools_plus-0.1.3-py3-none-any.whl

Download URL dash_devtools_plus-0.1.3-py3-none-any.whl
Size 731.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4958728e9c673a661b0e1993fcfbedb712342287e2b368bb6f8b88441abb0448
BLAKE2b-256 checksum
How to use checksums
c70ff746d8fe7f5487e6774e059189d091fd87d752509594e39fd712bdf55a0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

0.1.4

2 release files

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