1

Is it possible to work with AWS Sagemaker Studio Notebooks using an IDE such as VSCode or PyCharm/IntelliJ running on my local machine? And if yes, how?

Ideally I'd like to want to connect to the Sagemaker-managed Jupyter kernel from my local IDE, so I can see and edit the notebook in my IDE while execution happens in the kernel on AWS Sagemaker.

I know how to connect to a self-managed Jupyter installation on a remote server like EC2. This is not want I want. I'm looking to connect to a kernel managed by Sagemaker Studio.

florian
  • 111
  • 1

1 Answers1

0

VSCode supports a client-server architecture where the server is remote and the client is local. The process is to set up a Visual Studio Code Server on AWS and then connect that remote instance to your local VSCode client, step-by-step directions are here.

Brian Spiering
  • 20,142
  • 2
  • 25
  • 102
  • Thanks, this sounds like a great approach, but (as of July 2023) has a severe limitation: You can only install it code server on the "system" instance of Sagemager Studio, not on the (poentially bigger) instances that run the Jupyter notebook kernels. Option B only seems to work on non-Studio instances. (see sofian's comment below the post you linked to and https://github.com/aws-samples/amazon-sagemaker-codeserver/issues/10 ) So that doesn't really solve the question, unfortunately. – florian Jul 24 '23 at 11:32