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
majudd
Regular Visitor

Using python pptx Presentation() function with Power BI

Is there a function within the python pptx library to recognize a Power BI page in a PPT and modify it? prs.slides.shapes is not recognizing the Power BI insert as a shape.

 

In particular, I am looking to  write a python script that reads in a PPT, recognizes the Power BI Add-in, changes it's setting from "Live data" to "Public Screenshot", and then writes it out with a new file name.

1 ACCEPTED SOLUTION
v-sdhruv
Community Support
Community Support

Hi @majudd ,

Python has a library, PBIXRay designed to parse and analyze PBIX files, which are used with Microsoft Power BI.
You can learn more about it here.

https://pypi.org/project/pbixray/

For the help regarding writing a python code, you can reach out on Python forum

https://python-forum.io/
Hope this helps!

View solution in original post

1 REPLY 1
v-sdhruv
Community Support
Community Support

Hi @majudd ,

Python has a library, PBIXRay designed to parse and analyze PBIX files, which are used with Microsoft Power BI.
You can learn more about it here.

https://pypi.org/project/pbixray/

For the help regarding writing a python code, you can reach out on Python forum

https://python-forum.io/
Hope this helps!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.