Using CodeWhisperer and CodeGuru extensions with SageMaker - Amazon SageMaker
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Using CodeWhisperer and CodeGuru extensions with SageMaker

Important

As of November 30, 2023, the previous Amazon SageMaker Studio experience is now named Amazon SageMaker Studio Classic. The following section is specific to using the Studio Classic application. For information about using the updated Studio experience, see Amazon SageMaker Studio.

Amazon SageMaker Studio Classic is an integrated machine learning environment where you can build, train, deploy, and analyze your models all in the same application. This topic shows how to generate code recommendations and suggest improvements related to code issues by using Amazon CodeWhisperer and Amazon CodeGuru with Amazon SageMaker.

The following extensions support writing code by generating code recommendations and suggesting improvements related to code issues:

  • Amazon CodeWhisperer

  • Amazon CodeGuru

What is Amazon CodeWhisperer?

Amazon CodeWhisperer is a service powered by machine learning that helps improve developer productivity. CodeWhisperer achieves this by generating code recommendations based on developers’ comments in natural language and their code in the IDE. During preview, Amazon CodeWhisperer is available for the Java, JavaScript, Python, C# and TypeScript programming languages. The service integrates with JupyterLab, Amazon SageMaker Studio Classic, Amazon SageMaker notebook instances, and other integrated development environments (IDEs).

For more information, see the Setting up CodeWhisperer with Amazon SageMaker Studio Classic.

What is Amazon CodeGuru?

Amazon CodeGuru Security uses automated reasoning and machine learning informed by Amazon security best practices. CodeGuru Security automatically creates comprehensive security policies, detects security vulnerabilities in your code, and suggests quality improvements. Together, these recommendations can help you create and deploy secure applications.

CodeGuru Security improves the security of your code in the following ways:

  • Proactively detects security policy violations and vulnerabilities.

  • Provides recommendations for addressing security risks.

  • Suggests improvements to inefficient methods.

From SageMaker, you can call CodeGuru Security by using the open-source Jupyter plugin. You can use CodeGuru Security to scan notebooks for a variety of issues that can affect the security, correctness, reproducibility, maintainability, and performance of your code. For more information, see Tutorial: Run scans with SageMaker Studio Classic and JupyterLab.