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 September 15. Request your voucher.

Reply
JamesIsCooke
New Member

Seaborn plots give error when published

Hello all,
 
I'm having an issue where a python visualisation that works on Power BI desktop raises an exception when published to power bi.
This code works on desktop:
 
import matplotlib.pyplot as plt
import seaborn as sns
 
fig, ax = plt.subplots(figsize=(6,3))
sns.jointplot(x='Selected Measure',y='Selected Measure Secondary',data=dataset)
 
plt.show()
 
But online gives me the error:
TypeError: color_palette() got an unexpected keyword argument 'as_cmap'
3 REPLIES 3
v-janeyg-msft
Community Support
Community Support

@JamesIsCooke  Any updates?

Yes, we're using dash instead of power bi. 

v-janeyg-msft
Community Support
Community Support

Hi, @JamesIsCooke 

 

Check the similar error, May be helps:

python - Obtaining a cmap for color brewer palette - Stack Overflow

Do you install a personal gateway? Power BI Gateway | Microsoft Power BI

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.


Best Regards,
Community Support Team _ Janey

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.

Top Solution Authors
Top Kudoed Authors