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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.