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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.