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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
PeterParker
Helper I
Helper I

Load Phyton predictive model in Power BI Service

Hi all,

 

I have a power bi desktop file, here I have a phyton model for predictions. unfortunately I can't use this model in a power bi service. does anyone have an idea how to expose a predictive model for the Power bi service.

 

Rg Peter

1 ACCEPTED SOLUTION
sergej_og
Super User
Super User

You will need Fabric capabilities.
Service does not have enough py-libraries out of the box.

Regards

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @PeterParker ,
According to your description, if you want to use python model in power bi service. First, you need to manipulate the data on the power bi desktop side. Then upload the data after the manipulation to the power bi service. to refresh the Python model in the Power BI service, you need to configure a scheduled refresh and make sure that the Power BI gateway is installed and configured on the computer where the Python environment and the .pbix file are located.
You can check out this document for more details on running python scripts on power bi destop
Run Python scripts in Power BI Desktop - Power BI | Microsoft Learn

Best regards,
Albert He

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Hi @Anonymous ,

 

thanks for your replay.

if I use phyton scripts for graphics, this already works in the Power BI service. I have already had good experiences here. In my example with the Phyton Scikit Learn model, which I included as a step in Power Query. I get the following message when configuring the gateway (on-premises). The data source csv and model are in the same directory.


Gateway.png

Regards Peter

sergej_og
Super User
Super User

You will need Fabric capabilities.
Service does not have enough py-libraries out of the box.

Regards

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors