cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Plotly in python notebook- not seeing all graphs

griffinw
New Contributor III

Hello,

I have written code that produces plotly charts in a python notebook (by facet) - each output is 4 line charts side-by-side with a few points highlighted.

When I run this in a loop to produce more than 7 or 8 of my graphs, some of the features do not show up on some graphs.

For example, I might not see the line on one of the graphs, or another may be completely lacking in visuals. However, when I hover over where the graphs should be, I see the interactive plotly tooltips as if the graphs are there.

Why does this happen, and how can I resolve it? Thank you

2 REPLIES 2

Hubert-Dudek
Esteemed Contributor III

Please share your code (or just the whole notebook) and screenshot pointing to what is not showing.

griffinw
New Contributor III

unfortunately I'm not able to share as it is in reference to proprietary company data

essentially, I can produce any one plotly graph like:

[line graph with scatter]

but if i produce, say, 8 of them (looping on a list of inputs), I get something like this:

[empty box]

[just scatter points no line]

[empty box]

[empty box]

[just scatter points no line]

[line graph with scatter]

[line graph with scatter]

[line graph with scatter]

If I hover over one of the empty boxes where a graph should be, the tooltips appear as if everything is graphed correctly, but the line and points themselves are not visible

It's not obvious why some render and some don't, the pattern is not always the same

I discovered today that clicking the "lasso" or "box" buttons on the plotly toolbar for the invisible or partially invisible graphs will cause the hidden visualizations elements to appear, so I have a temporary workaround

If anyone has by chance encountered a problem like this and solved it, I'm all ears. If no one has and my description is incomprehensible, then fair enough as I don't know how else to explain it.

Thank you for your efforts

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group