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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
nontawat
New Member

URLopen error

Hi,

 

I run python visual on power bi desktop, it works.

 

 

import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.image as mpimg

img = 'https://storage.googleapis.com/xxxxxxx/xxxxxx.svg.png'
img = mpimg.imread(img)
imgplot = plt.imshow(img)
plt.axis('off')
plt.tight_layout()
plt.show()

 

 

But running on power bi service, I get this error.

 

MicrosoftTeams-image.png

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

Hi, @nontawat 

Could you please tell me whether your problem has been solved?

If the problem is still not resolved, it is recommended to open a support ticket to let engineers look into the issue on your side.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @nontawat 

Could you please tell me whether your problem has been solved?

If the problem is still not resolved, it is recommended to open a support ticket to let engineers look into the issue on your side.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-easonf-msft
Community Support
Community Support

Hi,  @nontawat 

Please check this similar thread.

Error-when-running-Python-Visualisation-Script-in-Power-BI 

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.