We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_send_to_plotly
1 parent 4e644af commit bfee772Copy full SHA for bfee772
plotly/plotly/plotly.py
@@ -1390,6 +1390,11 @@ def _send_to_plotly(figure, **plot_options):
1390
"""
1391
1392
1393
+ invalid_plot_options = [plot_option for plot_option in plot_options
1394
+ if plot_option not in DEFAULT_PLOT_OPTIONS]
1395
+ if invalid_plot_options:
1396
+ raise exceptions.PlotlyError('Invalid plot options, {}.'
1397
+ .format(invalid_plot_options))
1398
fig = tools._replace_newline(figure) # does not mutate figure
1399
data = json.dumps(fig['data'] if 'data' in fig else [],
1400
cls=utils.PlotlyJSONEncoder)
0 commit comments