Title in figure crashes visdom rendering
See original GitHub issueBug Description When using plotlyplot function to push a plotly figure (Because I needed subplots), the rendering crash if I set a title in the figure (by using fig[‘layout’].update function).
Reproduction Steps
- Create a subplot using plotly (
fig = tools.make_subplots(...)
) - Fill the fig with traces by using
fig.append_trace
function - Update the fig layout by using
fig['layout'].update(title='whatever')
- Upload the figure on visdom server
vis.plotlyplot(fig)
- The visdom web rendering crashed (blue screen) after the upload
Expected behavior The plot should be visible in visdom web interface.
Client logs:
In the console of the browser, I got the javascript error n.title.match is not a function
that make the page go plain blue.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Title in figure crashes visdom rendering · Issue #557 - GitHub
When using plotlyplot function to push a plotly figure (Because I needed subplots), the rendering crash if I set a title in the...
Read more >Premier pro so slow in rendering titles and keeps
Can anyone help - i cant use it, it is so slow and then crashes what can I do - 10490946.
Read more >Titler+ crashes MC 2022.4 and can't restart and other issues
If titles are stacked, Crash. If titles are rendered, I may be able to adjust two or three of them before it seems...
Read more >Media Upload In Progress Reddit
Media Upload In Progress RedditIn this programming lesson you can learn to use HTML5 + JavaScript + PHP to render an elegant file...
Read more >Browsing Student Prize Papers by Title
Browsing Student Prize Papers by Title ... Initially, the crash was reported as just another tragic ... Render Less Unto Caesar?:
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi all - sorry I’ve been pretty swamped with another project and unable to investigate a fix for this just yet. My first look surfaced this line as the likely source of the problem: https://github.com/facebookresearch/visdom/blob/b71063fdac0f70415abe3fefefe86c7d529d1495/js/main.js#L596 Logging what is in the
title
attribute at/before that moment should surface what is causing the break, but I haven’t gotten to try it yet.Some more context from my first pass: https://github.com/facebookresearch/visdom/blob/b71063fdac0f70415abe3fefefe86c7d529d1495/py/visdom/server.py#L438 This would seem to suggest that title is ultimately stored in
opts
rather than layout. Asplotlyplot
doesn’t allow populating the options manually, they are handled here: https://github.com/facebookresearch/visdom/blob/b71063fdac0f70415abe3fefefe86c7d529d1495/py/visdom/__init__.py#L872 For some reason I suppose the title isn’t a regular string.@JackUrb I can take a look at this