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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

PowerBI Won't Open IDE for Python (Visual Studio)

I saw a similar post from the past but it was never resolved, I'm wondering if anyone else is running into similar issues.

 

I have installed PowerBI and Visual Studio Code, installed Python and Python extension for VS Code. VS code is set as default application for opening .py files. 

 

When I go to Python settings VS Code doesn't appear in drop-down as an installed IDE. When I ask PBI to use the default app for .py extensions or manually point to VS Code's executable, it still ignores the whole thing and just opens the built-in Python editor.

 

Am I missing something or this is a bug? 

 

Thanks 

1 ACCEPTED SOLUTION

Hi, @Anonymous 

You can try the following steps.

 

1 Select Python visual from Visualizations Pane to enable scripts visual

v-cazheng-msft_0-1614230382442.png

 

2 Drag a field into Python visual as values and then click the arrow to enable script in external IDE

v-cazheng-msft_1-1614230382489.png

 

v-cazheng-msft_3-1614230641193.png

 

 

Best Regards,

Caiyun Zheng

 

Is that the answer you're looking for? 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

11 REPLIES 11
finchy
New Member

I have the same problem, the reply marked as accepted solution is not a fix.

 

From what I have found, this appears to be a bug with the Power BI Desktop version that is installed from the Microsoft Store. A Power BI Desktop install that is downloaded from the website does not have this issue. I have been able to replicate this issue on two different devices using the store install. It seems that the Microsoft Store version has some kind of security/permission/environment limitation that does not allow running the exe, and so I think that is why the path is cleared when saving the IDE path, and does not allow the default app for .py files to launch correctly either. 

 

Is it possible to have a bug fix ticket created for this? Or at least warning message stating that setting an IDE is not supported with the store downloaded version? While the solution would be to download from the website directly, I do not have the permission to use installers for apps in my organization, and can only use the approved apps via the store.

Anonymous
Not applicable

The ultimate solution to this problem is for you to change the default py script execution program.
Make sure it's like the PY IDE, and change it to VSCode.

 

pypropt.png

 

v-cazheng-msft
Community Support
Community Support

Hi, @Anonymous 

You can refer Run Python scripts in Power BI Desktop and Use an external Python IDE with Power BI. If it doesn't work, you can consider downloading Python from Python website and installing it.

 

Best Regards,

Caiyun Zheng

 

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

Anonymous
Not applicable

Latest supported version of Python is installed and I've already followed the steps in the documentation. It simply doesn't work.

 

Hi, @Anonymous 

Can you describe your configuration steps with more details? Does your setting for Python in Options looks like the following?

 

v-cazheng-msft_0-1614074160210.png

 

Best Regards,

Caiyun Zheng

 

Anonymous
Not applicable

Python scripts do run but IDE doesn't launch. I'm pointing it to VS Code executable as it doesn't appear on the detected IDE drop-down. image.png

Hi, @Anonymous 

Your configuration in Options is correct. Then you need click the arrow to enable VS Code. Have you operated like this?

v-cazheng-msft_0-1614133880892.png

 

Best Regards,

Caiyun Zheng

Anonymous
Not applicable

I don't see the arrow or syntax highlighting. Tried both in get data and Query Editor windows.


 

YigitK_2-1614174558607.png

 

Hi, @Anonymous 

You can try the following steps.

 

1 Select Python visual from Visualizations Pane to enable scripts visual

v-cazheng-msft_0-1614230382442.png

 

2 Drag a field into Python visual as values and then click the arrow to enable script in external IDE

v-cazheng-msft_1-1614230382489.png

 

v-cazheng-msft_3-1614230641193.png

 

 

Best Regards,

Caiyun Zheng

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

I have the same problem, but the solution provided is not valid.

It seems that PowerBI is simply not able to accept the vs code installation path (which by the way is in the default path): after indicating the VS Code path and OK, if I reopen the Options it is again set to "Default OS program for files". PY", and of course it opens the other editor instead of Code.exe when I add a visual python.

yby_0-1637081935394.png

Any ideas? Thanks in advance.

Anonymous
Not applicable

I'm having the same problem.

 

Have you found a solution yet?

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.