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
EAB1977
Frequent Visitor

Power BI Service & Python visual questions

My company is using a historgram with some customizations to it to display a histogram how we want based on the data that is returned. These are the packages we are using within the Power BI Desktop

 

import matplotlib.pyplot as plt
import numpy as np
import math
 
When our code is all said and done, the visual displays just as we needed it to and works as intended. But, when we push this to the Power BI service, we end up getting this error.
 
EAB1977_0-1660745985904.png

 

 
Looking at the documentation located here, it appears that we are adhearing to the supported Python packages other than the math module. It also states something about the Power BI service supports packages published in PyPI. Since my company is using the math module, does that need to go there?
 
I am searching for answers. The weird thing is, sometimes the visual works and other times it doesn't.
3 REPLIES 3
EAB1977
Frequent Visitor

Yes, the display is up and running 24/7.

I asked about the personal gateway app, not the display.  Python and R visuals on the Power BI Service only work with Personal Gateways.

lbendlin
Super User
Super User

Can you confirm that the personal gateway that you have set up for this is running at the time your users attempt to use the visual?

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.