GH python and VS code Live sync in Rhino 8

Hey everyone, I’m attempting to import my backend code from Visual Studio Code to my Grasshopper Python components. However, whenever I make a change in the backend, I have to close and reopen Rhino and Grasshopper to see the updates. Refreshing and recomputing don’t seem to work. Any suggestions on what I should do?

If the Python file is imported as a normal module, Python’s module cache is probably why recomputing Grasshopper does not reload the changed code. An explicit reload can work, but it becomes another piece of development plumbing to maintain.

An alternative is Ghost Writer, which lets you edit the component’s managed Python project directly in VS Code or another IDE. Saving triggers the component update and recompute, so the normal edit–save–test loop does not require restarting Rhino. Inputs and outputs are declared in the typed run() signature, and the docstring supplies their descriptions. Disclosure: I’m the developer of Ghost Writer.

I tried out GhostWriter.
It’s a really great feature!
When writing in Python, it’s extremely convenient that you can set the input terminal just by specifying the type as an argument.

There’s just one issue, though: it throws an error if it can’t find rhinoscriptsyntax.
Since I’m not using it, the problem goes away if I remove the import statement, but I thought I’d report it just in case—though this might be specific to my own environment.