Security, code quality, and ML recommendations
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
- Install the Python package in development mode.
pip install -e .
- Link the extension with JupyterLab.
jupyter labextension develop . --overwrite
- Build the Typescript source.
jlpm build
# or
jlpm watch # automatically rebuild changes
- 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
Built Distribution
File details
Details for the file amazon_codeguru_jupyterlab_extension-1.1.1.tar.gz
.
File metadata
- Download URL: amazon_codeguru_jupyterlab_extension-1.1.1.tar.gz
- Upload date:
- Size: 2.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddf2069f6183decc041ba9302097a30409ef632bdc7e398943650acc7381ee94 |
|
MD5 | 43419be6536dcc55c131e39ea1dfff71 |
|
BLAKE2b-256 | ebcf09ebe5f2b83949a19b976eab73c5b3bf55d1d547d9c7faf7b7c049a4c92d |
File details
Details for the file amazon_codeguru_jupyterlab_extension-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: amazon_codeguru_jupyterlab_extension-1.1.1-py3-none-any.whl
- Upload date:
- Size: 2.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7643a5993a4e99cec9e4cee370e0382403b9f104b90162bf39be4f160b3a718 |
|
MD5 | 9f64b19387aebe248c5a9e7bbda8f7c8 |
|
BLAKE2b-256 | e13a9e563170d32023fdc02a32cc00e6ffeec4e9cf75c33496274f2f9157c88c |