-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set up environment on remote host (module load) #2982
Comments
I would also add that I'd like to see an ability to load modules when running the debugger. Something in the launch.json like:
|
Hi, |
Hi, I'm facing the same problem when using ssh remote host. Because python3 and virtual environments(conda) can't be recognized, I can't use python to deal with snakefile. |
@roblourens This is sort of in the same class as #690 |
You can also set this stuff up in a bashrc, does that help? Also #1722 |
@roblourens That's true (at least from my experience), but only helps if you're willing to semi-unconditionally (because you can still draw some distinction between login and non-login shells) run the command. In the case of modules, you could just unload it interactively... but that's a workaround to a workaround. |
I'd like to use VS Code to develop on our HPC cluster via the remote-SSH extension.
In short: The environment after SSH is minimal. Almost no software is available. To get that you need to issue 1 or more
module load <software>
commands which set up PATH/LD_LIBRARY_PATH and more. Thismodule
is a bash (or other shell) function.So what I'd like to do: Specify commands to run before starting the remote VSC instance so it picks up the changed environment or alternatively modify the environment via a shell and reload the remote VSC in that environment.
Another solution would be to specify a (remote) file to be sourced before loading the remote VSC instance. This could then contain e.g.
module load <foo>
andexport FOO=bar
statements which the remote VSC will pick up.The text was updated successfully, but these errors were encountered: