Skip to content

Building Interactive Applications - For Websites (Plotly DASH) #54

Closed as not planned

Description

@mmcky

Evaluate

https://plotly.com/dash/

as a useful tool for building standalone interactive plots / applications from python

Activity

  1. mmcky commented on Aug 7, 2026

    @mmcky
    ContributorAuthor

    Closing this as declined against Dash specifically, and recording the evaluation in the technology register rather than dropping it — because the need behind the issue turned out to be real, and currently broken.

    First, what this is not. Dash is in good health — MIT, 24.4k stars, v4.4.1 shipped 2026-07-21 — and the open-source library has not been narrowed since this was filed. This is not a dead-technology close.

    Nor is it a decision about interactivity in general. Our style guide endorses interactive plotly figures, and manual.quantecon.org/styleguide/figures.html serves one from GitHub Pages right now. Static hosting and interactivity are orthogonal, and it is worth stating that plainly so this close is not later cited as a reason to avoid client-side interactive work.

    The reason it declines is hosting, and it is categorical. Every QuantEcon public site is served from GitHub Pages, which runs no Python process. Dash hard-depends on Flask, routes every interaction through a POST to _dash-update-component, and starts a server on run(). There is no serverless path — the Pyodide-backend request, plotly/dash#1559, has been open since February 2021 at low priority with no activity since 2024. A Dash app also owns an entire page, so it could not sit inside a MyST lecture and would produce nothing in the pdflatex and downloadable-notebook builds each lecture also ships.

    The deciding argument is proportion. Every live instance of this need in our lectures is a one-dimensional grid of 14 to 21 discrete parameter values. That precomputes into plotly animation frames or updatemenus, which are fully interactive client-side on a static page — no server and no new infrastructure. Dash earns its complexity when arbitrary Python must run on a value the reader just chose; that is not what these lectures need.

    The need is real, though, and it is shipping broken. Two defects came out of this evaluation and are now tracked separately:

    • Interactive plotly figures: four different answers across the series, two of them broken #354 — interactive plotly figures have four different answers across the series and two are broken. inequality.md calls bare fig.show() and intro.quantecon.org/inequality.html renders an empty box while the prose tells the reader the figure is there; eight more figures are commented out across back_prop.md and the two BCG_* lectures; lecture-datascience.myst uses a third mechanism that works; and the form the style guide actually mandates is applied in zero lecture files.
    • Sliders that look interactive but are not: ipywidgets in published lectures #355 — black_litterman.md in lecture-dynamics ships three draggable sliders with no kernel behind them, one frozen PNG per output. The same lecture in lecture-python-advanced.myst has the widgets stripped, and matsuyama.md disables its widget with an honest note. Three lectures, three answers, and the first one misleads.

    Where this now lives. The evaluation is recorded at docs/tech/entries/plotly-dash.md in QuantEcon/lectures — see QuantEcon/lectures#6. The entry disposes of the whole needs-a-server category, so Streamlit, Shiny in server mode, Panel in server mode and Gradio are covered by the same reasoning; their static-export paths (shinylive, stlite, panel convert, marimo export html-wasm) are explicitly not covered and belong with the WASM evaluation.

    This also answers discussion #278 (Shiny for Python), which restates the same need — linking it here so it is not raised a third time uncatalogued.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions