plotly / plotly/dash

provide meaningful exception on clientside callback's JS function absence

Open
#1,208 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
Python
Stars
24.4k
Forks
2.3k
Avg merge
2d 7h
Merged PRs (30d)
13

Description

In Dash 1.11.0, suppose we have

app.clientside_callback(
    ClientsideFunction('cbs', 'display_export_view'),

On window.dash_clientside.cbs absence at all, I get:
image

On window.dash_clientside.cbs.display_export_view absence, I get:
image

Propose to have a meaningful exception.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce both missing cases through app.clientside_callback with ClientsideFunction('cbs', 'display_export_view'), starting with the clientside callback path and the window.dash_clientside lookup. Done means an absent namespace and an absent function each produce a meaningful exception instead of the current failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.