Skip to content

[BUG]: Some recently-added config options in plotly.js raise a warning in plotly.py #5594

@emilykl

Description

@emilykl

Trying to use some newly-added plotly.js config options in plotly.py raises a warning. For example, displayNotifier, added in plotly.js 3.5.0.

import plotly.express as px

df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species")

config = {"displayNotifier": False}
fig.show(config=config)

The config option still works as expected, but raises a warning:

/Users/ekl/code/plotly.py/plotly/offline/offline.py:152: UserWarning: 
Unrecognized config options supplied: ['displayNotifier']
  warnings.warn(

This is because configkeys in plotly/offline/offline.py needs to be manually updated with the new keys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions