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

VS Code Server support in Coiled Notebooks #301

Open
jacobtomlinson opened this issue Oct 18, 2024 · 3 comments
Open

VS Code Server support in Coiled Notebooks #301

jacobtomlinson opened this issue Oct 18, 2024 · 3 comments

Comments

@jacobtomlinson
Copy link

This is probably a quick yes/no. Is there a way to change the application that gets launched by Coiled Notebooks?

I know some hosted notebook platforms just expect an application to run on port 8888 for proxying, and let you specify a custom startup command. We often see folks using VS Code Server in place of Jupyter on these services.

Is this viable on Coiled?

@ntabris
Copy link
Member

ntabris commented Oct 18, 2024

It doesn't work today, I tried this a while ago and got as far as this:

image

I think based on microsoft/vscode#191276 that we'd have to do some extra work to make the TLS termination that happens on the VM configurable.

@jacobtomlinson
Copy link
Author

Perhaps as a follow up then is there a way to SSH through to the container on the VM using regular SSH (not coiled cluster ssh). That way it could be accessed via the VS Code SSH extension.

@ntabris
Copy link
Member

ntabris commented Oct 22, 2024

is there a way to SSH through to the container on the VM using regular SSH

Yes!

  1. Make a cluster, make sure you allow ingress for SSH. For example coiled.Cluster(..., allow_ssh_from="me") or any coiled run ... will have 22 open ingress coming from your IP address.
  2. Add the SSH key for this cluster to your local agent by running coiled cluster ssh --add-key (you can also specify cluster by ID or name in this command, it defaults to the latest cluster if you don't specify).
  3. Use coiled cluster address to get the address, which could (for example) be plugged directly into an SSH command like ssh "ubuntu@$(coiled cluster address)".
  4. When you're done, coiled cluster ssh --delete-key will remove the key from your local agent if you care about that.

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