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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Victormar
Helper V
Helper V

Refresh semantic model containing Python scripts

Hello community,

We are trying to work with a Report that contains tables created using Python scripts, as we are getting them from an API. We face the problem when trying to refresh the semantic model in the service. We've heard that is not supported, or that maybe we can use a personal gateway.

Any experience with it, or alternative options?

 

Thanks for you time and help 🙂

2 REPLIES 2
Victormar
Helper V
Helper V

thanks for your reply. Do I need to do something else aside from that? I have my on-prem gateway installed and selected in connections of the semantic model. The report combines dataflows and the python code.

 

It's not working unfortunately.

mohitkumawat
Super User
Super User

Hi @Victormar ,

In the above scenario, we can achieve this only through Gateway 

The data needs access to Python for visuals to be updated. The other steps are the following steps:

Enable scheduled refresh for the dataset. To enable scheduled refresh for the workbook that contains your dataset with Python scripts, see Configuring scheduled refresh, which also includes information about Personal Gateway.

Install the Personal Gateway. You need a Personal Gateway installed on the machine where the file is located, and where Python is installed. The Power BI service must access that workbook and re-render any updated visuals. For more information, see install and configure Personal Gateway.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.