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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.