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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Power Bi python visuals works fine in desktop but goes blank in power bi service

Hi All,

 

I am working my report on Power Bi desktop and i am using a python codes in some of my visuals. they work fine on my desktop version but when i publish the report in power bi service some of the visuals become blank. 

this is the output in my desktop version : 

bm1994_1-1635507891459.png

 

and this is the output in the power bi service after i publish my report 

 

bm1994_2-1635508008204.png

 

as you can see one code is working fine but the other one is blank . 

below you can see the code used ( the one that was working fine on desktop but became blank on service) : 

import seaborn as sns
import matplotlib.pyplot as plt
fig=sns.FacetGrid(dataset,hue='column_name1',palette='husl',aspect=2,height=5)
fig.map(sns.kdeplot,'column_name2',shade=True)
oldest=dataset['column_name2'].max()
fig.set(xlim=(0,oldest))
fig.add_legend()
plt.show()
 
Thank you.
3 REPLIES 3
AlexisOlson
Super User
Super User

My first guess was that you might be using an unsupported package but it looks like seaborn and matplotlib should be. Differing versions is still a possibility but not as likely.


https://docs.microsoft.com/en-us/power-bi/connect-data/service-python-packages-support

 

So, not a solution, but maybe this comment will save someone else the trouble of checking the same.

Anonymous
Not applicable

Hi, 

 

Thank you for your reply, I checked the Seaborn version that I am using in my python environment it is 0.11.0 and the supported version in power bi service is 0.10.1. So do you think that seems to be causing the problem ? should I downgrade my seaborn version and test it ? 

 

Thank you

It looks like v0.11.0 was a pretty major release, so it's probably worth a check.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.