Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
jtspilker
Helper I
Helper I

Python visual in a tooltip shows as blank

Hi

I have a fairly simple question - is it possible to create a tooltip page with a python visual on it? It doesn't seem to work for me. Testing other visuals on the same tooltip page works fine, but for the python visual it just remains blank when used as a tooltip. Is this a known limitation?

4 REPLIES 4
lbendlin
Super User
Super User

That should work.  Is the dataframe empty maybe?

@lbendlin thanks for the reply. At this point, I'm pretty sure it's a current limitation. I've made a simple python chart that plots a line from (0,0) to (1,1) not using any actual data from my report. I have thrown a measure in the visual field well since it needs one to plot anything. It's a simple SELECTEDVALUE measure. When I look at the tooltip page itself (as in not via a tooltip from another report page), the python plot works, even though I have no value for the SELECTEDVALUE measure. (Python plot on the left, card visual with the same SELECTEDVALUE measure on the right)

jtspilker_0-1683556605996.png

When I look at the tooltip from another report page (using actual tooltip behavior), the plot doesn't draw anything, even though the SELECTEDVALUE measure does have a value.

jtspilker_1-1683556678953.png

If it matters, my python code is

import matplotlib.pyplot as plt

# Define the x and y coordinates of the line endpoints
x_values = [0, 1]
y_values = [0, 1]

# Plot the line
plt.plot(x_values, y_values)

# Display the plot
plt.show()

I would say that this might be a bug as I could not find any mention of a limitation in the tooltips documentation.  You can raise an issue at https://issues.powerbi.com . If you have a Pro license you can consider raising a Pro ticket at https://powerbi.microsoft.com/en-us/support/pro/

thanks. if anyone has a similar issue and cares enough, they can upvote this issue here:

https://community.powerbi.com/t5/Issues/Python-visual-not-loading-in-tooltip/idi-p/3225204 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.