Skip to main content

Security, code quality, and ML recommendations

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Amazon CodeGuru JupyterLab Extension

Amazon CodeGuru extension for JupyterLab and SageMaker Studio. This extension runs scans on your notebook files and provides security recommendations and quality improvements to your code.

Requirements

  • JupyterLab >= 3.0

Install

pip install amazon_codeguru_jupyterlab_extension

Uninstall

pip uninstall amazon_codeguru_jupyterlab_extension

Development

Prerequisites

Ensure the following dependencies are available in your environment.

  • Python >= 3.8
  • JupyterLab >= 3.0
  • NodeJS >= 18

Alternatively, you can create a conda virtual environment with the following commands:

conda env update --file binder/environment.yml
conda activate amazon-codeguru-extension-demo

Manual Setup

  1. Install the Python package in development mode.
pip install -e .
  1. Link the extension with JupyterLab.
jupyter labextension develop . --overwrite
  1. Build the Typescript source.
jlpm build
# or
jlpm watch # automatically rebuild changes
  1. Start the JupyterLab server
jupyter lab

Quick Setup

Run the following command to quickly build and install the extension.

python3 binder/postBuild

Release

This extension can be distributed as a Python package. First, install build dependencies:

pip install build twine hatch

Bump the version using hatch. By default this will create a tag.

hatch version <new-version>

To generate a new Python source package (.tar.gz) and the binary package (.whl) in the dist/ directory, run the following command:

python -m build

Then to upload the package to PyPI, run the following command:

twine upload dist/*

Security

See SECURITY for more information.

License

This project is licensed under the Apache-2.0 License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amazon_codeguru_jupyterlab_extension-0.0.3.tar.gz (660.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file amazon_codeguru_jupyterlab_extension-0.0.3.tar.gz.

File metadata

File hashes

Hashes for amazon_codeguru_jupyterlab_extension-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5d78c15ed0aae81e3e840d6df60ad16da7641ddd62dd0370c97f4fab5e366347
MD5 d0f95427a25769138f38f7dfff548b17
BLAKE2b-256 b0e84988b322177127c0cc489b2d7f3b6dda891b2e30adc7a05acfe0a77ad3c7

See more details on using hashes here.

File details

Details for the file amazon_codeguru_jupyterlab_extension-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for amazon_codeguru_jupyterlab_extension-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5f594a789437c808d9309ffe9a36e4e46eee3b9207754f5321499538b1aaf8e0
MD5 1b4e581e09a7ab58e0e03e69ef09ccf0
BLAKE2b-256 c0b2c5db0c3b4911745b69398be35af230d110a476b68d1dfa2083006075cd99

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page