Hi everyone, I am Raghav Hinduja Swiss (Switzerland) based IT-professional. I’m trying to configure VS Code so that it uses the same Python environment as ArcGIS Pro. If you’ve done this before, could you please share your setup or suggestions
Ctrl-Shift-P > Python: Select InterpreterNavigate to and select your preferred interpreter.e.g. C:/Users/Mic/AppData/Local/ESRI/conda/envs/arcgispro-py3-clone/python.exe
Or, lock the interpreter at the workspace level. This avoids ever accidentally running against the wrong Python.Add .vscode/settings.json:
{"python.defaultInterpreterPath": "C:/Users/Mic/AppData/Local/ESRI/conda/envs/arcgispro-py3-clone/python.exe"}
I think what you are looking for is ESRI's ArcGIS Pro Debugger extension for Visual Studio Code , which is available from the Microsoft VSC Marketplace.
I have found this very useful. It integrates well, and once you've figured out how to install and use it, it works really well, allowing you to attach to Pro and debug your Python code in Visual Studio Code.
Do note it requires Pro 3.5+, so you may need to upgrade if you aren't yet on a recent version of Pro.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.