Skip to main content

Prism: Powerful multi-panel workspace manager for Plotly Dash

Project description

Dash Prism

CI Docs PyPI Python License

A multi-panel workspace manager for Plotly Dash applications.

Documentation: https://ludwigaj.github.io/dash-prism/ · PyPI: https://pypi.org/project/dash-prism/

What is Dash Prism?

Dash Prism provides a unified workspace where multiple Dash layouts coexist as tabs within resizable, splittable panels. Users arrange their workspace via drag-and-drop while developers focus on building content.

Demo

The Problem

Building dashboards with Plotly Dash typically means:

  • Fragmented applications - Each dashboard lives in isolation, requiring users to switch between browser tabs or navigate complex menus.
  • Repetitive UI work - Developers spend time on layout scaffolding, content management, and styling instead of business logic.
  • One-size-fits-all layouts - Users get a fixed arrangement that may not match their workflow.
  • No personalization - Workspaces reset on every visit; users cannot save their preferred view.

The Solution

Dash Prism addresses these issues by providing:

  • Unified workspace - Register any number of layouts; users open them as tabs in a single interface.
  • User-driven design - Drag tabs to split panels, resize areas, and rearrange freely. Developers define content; users define structure.
  • Persistence - Workspace state saves to localStorage, sessionStorage, or memory so users return to exactly where they left off.
  • Minimal boilerplate - A decorator-based API keeps layout registration concise and readable.

Features

  • User-Driven Layout - Users style tabs with colors and icons, reorder them freely, and drag to panel edges to split the view. You create the content; they make the dashboard.
  • Favorites & Search - Find layouts instantly with the integrated search bar. Mark frequently-used ones as favorites to pin them at the top.
  • On-Demand Loading - Tab content loads dynamically when selected, keeping initial page load fast even with many registered layouts.
  • Parameterized Layouts - Capture user options before loading a layout, minimizing server round-trips and delivering exactly what the user wants.
  • Custom Actions - Add status bar buttons that trigger Dash callbacks for saving workspaces, exporting data, or any custom functionality.
  • Persistence & Workspace State - State saves to localStorage, sessionStorage, or memory. Use readWorkspace and updateWorkspace for programmatic backup, restore, or team sharing.
  • Context Menus - Right-click tabs to rename, duplicate, lock, style, or generate a shareable link to send a specific tab to someone else.
  • Keyboard Shortcuts - Full keyboard navigation: new tab, close, rename, undo close, switch tabs, and more.
  • Error Resilience - Errors are captured at the tab level, guarding against crashes that would otherwise take down the workspace.

Light and Dark Mode

Dash Prism supports both light and dark themes, so the workspace adapts to your style.

Dash Prism light mode

Dash Prism dark mode

Installation

Requirements: Python 3.10+, Dash 3.1.1+

pip install dash-prism

Quick Start

import dash
from dash import html
import dash_prism

app = dash.Dash(__name__)

@dash_prism.register_layout(id='home', name='Home')
def home():
    return html.Div('Welcome to Dash Prism')

@dash_prism.register_layout(id='analytics', name='Analytics')
def analytics():
    return html.Div('Analytics content here')

app.layout = html.Div([
    dash_prism.Prism(id='workspace', persistence=True)
])

dash_prism.init('workspace', app)

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

Development

Setup

# Clone and enter the project
git clone https://github.com/LudwigAJ/dash-prism.git
cd dash-prism

# Create a virtual environment
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt
npm install

# Build
npm run build

Using Just

If you have just installed:

just install   # Install Python and npm dependencies
just build     # Build the package
just test      # Run tests

Contributing

Contributions are welcome. Please:

  1. Fork the repository.
  2. Create a feature branch.
  3. Write tests for new functionality.
  4. Ensure all tests pass (pytest).
  5. Submit a pull request.

See the Contributing Guide in the documentation for more details.

License

Apache License 2.0. See LICENSE for details.

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

dash_prism-0.7.1.tar.gz (169.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dash_prism-0.7.1-py3-none-any.whl (172.2 kB view details)

Uploaded Python 3

File details

Details for the file dash_prism-0.7.1.tar.gz.

File metadata

  • Download URL: dash_prism-0.7.1.tar.gz
  • Upload date:
  • Size: 169.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dash_prism-0.7.1.tar.gz
Algorithm Hash digest
SHA256 00a81954952017244044e3bb6ec4428dd175f751f7018c7d5c8d2cf815b2d2dc
MD5 22e5252d04d18d350e87d099022ca169
BLAKE2b-256 af4473b6ea4703b211473ec6b79e8f174178750a48bac368de2a30b31a26db7e

See more details on using hashes here.

Provenance

The following attestation bundles were made for dash_prism-0.7.1.tar.gz:

Publisher: publish.yml on LudwigAJ/dash-prism

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dash_prism-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: dash_prism-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 172.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dash_prism-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f35a4f954dcc121c6b1a262bc904e5882bea2652a7f73de5a782f63292a1c1c4
MD5 cb5bffc0d46f5446f24251b82ff8d729
BLAKE2b-256 6e255dd67ad99fbb7a738396f285406f32470f7f5e40285b31612bdae459f61b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dash_prism-0.7.1-py3-none-any.whl:

Publisher: publish.yml on LudwigAJ/dash-prism

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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