Introducing NProgress for Plotly Dash

Snehil Vijay
Oct 8, 2022

--

This article introduces dash.nprogress, a cute little wrapper over nprogress.js, to indicate loading state in your dash apps without making any change in your app. Well, except including this library 😅.

dash.nprogress looks at the number of pending callbacks and adds or removes a slim progress bar and a spinner based on that. It will also change the color of the progress bar if any callback fails.

These colors are configurable by the users. More information can be found in the GitHub readme.

Usage

from dash import Dashexternal_scripts = ["https://unpkg.com/dash.nprogress@latest/dist/dash.nprogress.js"]app = Dash(__name__, external_scripts=external_scripts)

And that’s it. This is what you get by just adding this library in your app.

I work on more dash related stuff especially the dash-mantine-components and dash-iconify. If you like what I do and want to support me, here is one way to do it.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response