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
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
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