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
dhorrall
Helper I
Helper I

Using custom Python in PowerBI Service?

 

I have been experimenting with using some 'custom' Python code as a data source in Power BI Desktop.  This code connects to a Cognos TM1 server, pulls data into a Dataframe, and subsequently into a table in Power BI Desktop.  This works fine in Desktop. 

 

My question is, will this work in the PowerBI service if I publish it?  Is it possible to refresh the data?  How would the service 'know' about the Python libraries I am using that I have installed in my desktop Anaconda Python environement?

 

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @dhorrall

I'm afraid it doesn't support Python in the PowerBI service currently, and it is not possible to refresh data.

a list of Python packages are supported in Power BI Desktop, but they aren't supported in Power BI Service.

Power BI Team are currently looking into how to support this.

 

Best Regards

Maggie

View solution in original post

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @dhorrall

I'm afraid it doesn't support Python in the PowerBI service currently, and it is not possible to refresh data.

a list of Python packages are supported in Power BI Desktop, but they aren't supported in Power BI Service.

Power BI Team are currently looking into how to support this.

 

Best Regards

Maggie

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.