1

I am using Sagemaker Notebook Instances on AWS.

Looks like we can only use Python 3.6 kernels. I would like to be able to use Python 3.10 (latest version, or at least Python 3.9) in a notebook.

So far, what I have tried is based on life cycle: https://docs.aws.amazon.com/sagemaker/latest/dg/studio-byoi-create-sdk.html

But somehow, it didn't work (I was not able to use the recent kernel in the notebook)

I have found an interesting link: https://github.com/aws-samples/sagemaker-studio-custom-image-samples but my knowledge is a bit limited and I do not know what exactly I should look at precisely to see the example I should follow.

Any advice/lead you could suggest please ?

Thanks

2
  • To confirm, are you making use of SageMaker Notebook Instances or SageMaker Studio? Regarding Studio, Lifecycle scripts are suited for customization includes installing custom packages. If you would like to make use of a custom kernel you would need to build your own container. You could look at using an example in the GitHub repo as as starting point. Commented Apr 5, 2022 at 21:10
  • @MarcK , I am using SageMaker Notebook instances. I will precise it, thank you. Commented Apr 6, 2022 at 23:51

1 Answer 1

1

SageMaker Data Science Kernel supports Python 3.6 version at the moment. If you need a persistent custom kernel in SageMaker studio, you can create an ECR repository and build a docker image with custom environment configurations. This image can then be attached to the SageMaker studio notebooks. Reference link!

Sign up to request clarification or add additional context in comments.

2 Comments

I edited my initial post, I am using SageMaker notebook instances. I guess your solution only works for Studio ? Thanks
That's correct the above reference is for SageMaker Studio. For creating a custom image for SageMaker notebooks you can use - github.com/aws-samples/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.