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
Anonymous
Not applicable

Python Script vs Custom Connector

I'm a lot happier creating a script in Pyhton than writing a custom connector in M, python also has the advantages of being able to debug and step through each line of code.

 

So I wanted to check is there any downside to pasting a long Python script into PowerBI and executing this as opposed to creating a custom connector?  Will the server have any issue refreshing it when it's published?

 

Many thanks.

1 ACCEPTED SOLUTION

If you want to share on the service, yes.

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

Python scripts tend to be quite a bit slower than M code.

Also keep in mind that as soon as you say Python (or R) and Power BI Service in the same sentence you are doomed to require a personal gateway.

Anonymous
Not applicable

Ah, so Python scripts require a personal gateway is that right?

If you want to share on the service, yes.

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.