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

indicate a path in a publication PBI for python script

Hello everyone,

 

I made a python script to draw the map of France thanks to a .geojson file in python, but the probleme is, once i have published my report, the path is wrong, i have to indicate a new path to indicate the path in the python script to read the .geojson file. But which path could i use to make it works?

 

Thanks.

1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hi. First validate that your code will work in Power Bi Service checking this documentation with the libraries involved:
https://docs.microsoft.com/en-us/power-bi/connect-data/service-python-packages-support

Then, considering you need to use a file to make the python code work it sounds like you can't use a local one. You can try uploading the file to a public repo like github to take its raw value or maybe it can work with a drive and its download link.

I hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

View solution in original post

1 REPLY 1
ibarrau
Super User
Super User

Hi. First validate that your code will work in Power Bi Service checking this documentation with the libraries involved:
https://docs.microsoft.com/en-us/power-bi/connect-data/service-python-packages-support

Then, considering you need to use a file to make the python code work it sounds like you can't use a local one. You can try uploading the file to a public repo like github to take its raw value or maybe it can work with a drive and its download link.

I hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.