Skip to content

FigureWidget doesn't load default template #2437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nicolaskruchten opened this issue May 5, 2020 · 0 comments · Fixed by #2439
Closed

FigureWidget doesn't load default template #2437

nicolaskruchten opened this issue May 5, 2020 · 0 comments · Fixed by #2439
Assignees
Milestone

Comments

@nicolaskruchten
Copy link
Contributor

While QA'ing the plotlywidget extension in JupyterLab, I noticed that just rendering go.FigureWidget() results in a figure displaying without the default template, even though fig.layout.template does return the default template. go.FigureWidget().update_layout(template="plotly") also doesn't work as expected but go.FigureWidget(layout=dict(template="plotly")) does.

Commenting out this line does restore the desired behaviour:

self._layout_obj._validate = False

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants