# Set Up VSCode for Python Scripting in Dynamo

**URL:** <https://forum.dynamobim.com/t/set-up-vscode-for-python-scripting-in-dynamo/86838>\
**Category:** Developers\
**Created:** [March 1, 2023, 6:12pm UTC](https://forum.dynamobim.com/t/set-up-vscode-for-python-scripting-in-dynamo/86838 "2023-03-01T18:12:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrlalvaro](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@mrlalvaro](https://forum.dynamobim.com/u/mrlalvaro)\
**Post date:** [March 1, 2023, 6:12pm UTC](https://forum.dynamobim.com/t/set-up-vscode-for-python-scripting-in-dynamo/86838/1 "2023-03-01T18:12:15Z")

</div>

Hi everyone, I’m new to this community!

I am an architect and currently working as a Revit specialist, and I am diving into dynamo and python scripting. I’m trying to set up vscode with intellisense to help me write scripts. I have found some guides on how to do it, but nothing works for me. I am working with VSCode 1.75 and Revit 2022.

Below I put what I am doing and the problems I am having.

-In the python script window there are two options (CPython3 and IronPython2) I have checked the IronPython2 option.

-I have downloaded the Talarico Gui repository.

-When I try to configure my options in the Json file some options like:

“python.pythonPath”, “python.jediEnabled”.

appear as unknown.

-The python version I get in the VSCode terminal is 2.7.18, but the interpreter shows 3.10.

-VSCode does not recognize other interpreters, and when I try to specify path I get this error:

“The isort server crashed 5 times in the last 3 minutes. The server will not be restarted.”

Anyway, a lot of things that exceed my computer knowledge, so if anyone has gone through the same thing or can help me I will be forever grateful.

Thanks for reading me!

---

<div class="post-metadata">

**Author:** ![aaronrumple](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/aaronrumple/32/195292_2.png) [@aaronrumple](https://forum.dynamobim.com/u/aaronrumple)\
**Post date:** [March 1, 2023, 8:15pm UTC](https://forum.dynamobim.com/t/set-up-vscode-for-python-scripting-in-dynamo/86838/2 "2023-03-01T20:15:30Z")

</div>

Well - to start…

- Dynamo has its own install of python. In 2022 - two versions.
- VSCode will have its install of python. maybe several.
- [pyRevit](https://discourse.pyrevitlabs.io/) ships with 6 IronPython versions and 2 CPython versions.  
The first step is to either make sure they are all set to their own version number you want to use. Or set the python paths and environment variables to the same location. I do the first, since I’m deploying to workstations each with their own default installation locations and no VSCode. The second gets into deployment issues. Bother.

As for the intellisense - I haven’t bothered setting that all up. I just type - Use the Force.

---

<div class="post-metadata">

**Author:** ![mrlalvaro](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@mrlalvaro](https://forum.dynamobim.com/u/mrlalvaro)\
**Post date:** [March 2, 2023, 11:32am UTC](https://forum.dynamobim.com/t/set-up-vscode-for-python-scripting-in-dynamo/86838/3 "2023-03-02T11:32:12Z")

</div>

Thank you very much for replying!  
I don’t know how [pyRevit](https://discourse.pyrevitlabs.io/) works, I will download it and take a look to see how it works. The workflow I was following was to open pythonScript nodes in Dynamo, and paste the code I had written in VSCode, but maybe it’s not the best way…

---

<div class="post-metadata">

**Author:** ![aaronrumple](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/aaronrumple/32/195292_2.png) [@aaronrumple](https://forum.dynamobim.com/u/aaronrumple)\
**Post date:** [March 2, 2023, 4:34pm UTC](https://forum.dynamobim.com/t/set-up-vscode-for-python-scripting-in-dynamo/86838/4 "2023-03-02T16:34:05Z")

</div>

Personally, I think if you are writing Dynamo, stick with nodes as much as possible and use python sparingly. And for that, the dynamo editor is adequate.

If you are getting into a lot of python - just jump to [pyRevit](https://discourse.pyrevitlabs.io/). You set up a bundle and then to test you can just hit the Revit icon you made. You can code in VSCode and just save to update. There is no reload or anything to do. One big advantage of [pyRevit](https://discourse.pyrevitlabs.io/) is deployment and maintenance. Just a file structure and some code files. Move them around as needed and the changes will be reflected in users sytems each time they start Revit.

[pyRevit](https://discourse.pyrevitlabs.io/) will run Python scripts, Visual Basic scripts, C .Net scripts, and Dynamo scripts. So it gives you a consistent interface and deployment process for all of your work.

You’ll also want to install Python Shell. It is great for testing little snippets of code.
