# Write Python script in VS Code

**URL:** <https://discourse.mcneel.com/t/write-python-script-in-vs-code/172730>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [January 5, 2024, 3:58pm UTC](https://discourse.mcneel.com/t/write-python-script-in-vs-code/172730 "2024-01-05T15:58:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![andrea.settimi](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andrea.settimi/32/691314_2.png) [@andrea.settimi](https://discourse.mcneel.com/u/andrea.settimi)\
**Post date:** [February 11, 2024, 7:00pm UTC](https://discourse.mcneel.com/t/write-python-script-in-vs-code/172730/4 "2024-02-11T19:00:33Z")

</div>

Hello there!

I do not know if it might help but I developed a small connector from vscode to run live python scripts both in Rhino and Grasshopper, it’s called [script-sync](https://github.com/ibois-epfl/script-sync). It is only tested on windows but it should get you run quickly to execute python script components from vscode.

You just need to install the `yak` package and the vscode extension of `script-sync`(version 1.1.0), add a script-syncpython-component, press `shift-F4` in vscode and it should work fine 🙂

![single_comp](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/3/8/9/389f3b1d574a1588e45c4c23f9af3a99256dfae2.png)

![scriptsync_gh](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/a/c/9aca514cd69b9a7da9ece5e62cd24324d1dd91d7.gif)

---

_[View the full topic](https://discourse.mcneel.com/t/write-python-script-in-vs-code/172730)._
