Skip to content
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

Connect to Pyxis Container from VSCode #149

Open
ECMGit opened this issue Sep 4, 2024 · 2 comments
Open

Connect to Pyxis Container from VSCode #149

ECMGit opened this issue Sep 4, 2024 · 2 comments

Comments

@ECMGit
Copy link

ECMGit commented Sep 4, 2024

Hi there,

I can access to compute node by ssh <username>@<ip> address from vscode, where my compute node was requested by srun -N1 -G1 -c16 --mem=128G --time=12:00:00 --container-name=<name> --container-image <file name>.sqsh --container-mounts=$WORK:/workspace/work --pty $SHELL, everything works well.

When I use VSCode ssh to the compute node, I need to use srun --overlap --jobid=<jobid> --pty bash to enter running container session in every terminal session, otherwise my vscode terminal only enter the host session. Also I want to know how can I find the python interpreter from container in vscode? Looks like /usr/bin/python in compute node are not same as the /usr/bin/python in running container.

Thanks!

@flx42
Copy link
Member

flx42 commented Sep 4, 2024

It's not something I can really help you with, I haven't tried this workflow. I'm afraid you will have to investigate yourself what VSCode is doing.

If you have a specific question about how pyxis is behaving and why, I can help with that.
For instance:

Looks like /usr/bin/python in compute node are not same as the /usr/bin/python in running container.

Yes, that's normal, they don't have to match.

@ECMGit
Copy link
Author

ECMGit commented Sep 5, 2024

Thank you! I found enroot list -f can found the running container ID and enter the running container session in terminal. May I ask that how can I locate the python interpreter in container if my terminal session is in host? Is there any mapped path in host node file system?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants