Extension use with remote connection #2922
Replies: 2 comments 6 replies
-
|
In your Other than that I don't know what else to link besides the python documentation for importing modules:
Maybe add some commands that output meta information about installed modules and module resolution, which allow you to inspect the environment when run from your vscode extension. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @victorchalamet , If you need your extension to work on remote extension environments, and you depend on files/apps located on that remote, your extension needs do be a Update your More info https://code.visualstudio.com/api/advanced-topics/extension-host#preferred-extension-location You could also force your extension to be installed on remote, using this user setting https://code.visualstudio.com/api/advanced-topics/remote-extensions#incorrect-execution-location, at least for trying out this approach. Hope this helps. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm working on a little extension that run a python script whenever I open a .fits file. I'm mostly planning on using it while I'm connected to a remote machine. Here's the main file.
extension.js
My issue is that the imports in my python scripts (astropy and matplotlib) are not found (ImportError: No module named astropy) when I'm using my extension. However when I'm running the command (python2.7 script_name.py) (yes only python2.7 is installed on remote) it works.
I've already looked at several things such as the fact that different python interpreter could be used when I'm running the command and when the extension runs it. I've also looked at where the module is installed and verify the path. I'm running out of ideas. Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions