Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

"TypeError: H is not a function" when selecting scatter points #526

@slishak

Description

@slishak

I'm not sure if this is a bug in Dash or Plotly.js, but seeing as I can't reproduce it when saving the figure with plotly.offline.plot, I'll put it here.

Whenever I select scatter points in a Dash app, I've started getting the following error:

image

It doesn't seem to affect the running of the app, any callbacks are still fired for the selected points.

Simplest example to reproduce:

import dash
import dash_core_components as dcc
import dash_html_components as html
import random

app = dash.Dash()

app.layout = html.Div([
    dcc.Graph(
        id='example-graph',
        figure={
            'data': [
                {
                    'x': [random.random() for _ in range(20)],
                    'y': [random.random() for _ in range(20)],
                    'type': 'scatter',
                    'mode': 'markers'

                }
            ],
            'layout': {
                'dragmode': 'select'
            }
        }
    )
])

if __name__ == '__main__':
    app.run_server(dev_tools_serve_dev_bundles=True)

Versions:

dash==0.41.0
dash-core-components==0.46.0
dash-html-components==0.15.0
dash-renderer==0.22.0
plotly==3.7.1

Also, for some reason I'm not getting the dev bundles when I set dev_tools_serve_dev_bundles=True, so sorry if the stack trace isn't very helpful!

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