Registry / aws / aws-glue-sessions

aws-glue-sessions

JSON →
library1.0.9pypypiunverified

Provides a Jupyter kernel for AWS Glue Interactive Sessions, enabling interactive development of PySpark, Ray, and SQL jobs from any Jupyter environment (including IDEs). Current version 1.0.9. Released occasionally, no fixed cadence.

pip install 'aws-glue-sessions>=1.0.0' jupyter
INSTALL
IMPORT
SIG · AWS-GLUE-SESSIONS
A
aws-glue-sessions
awspythonv1.0.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Install the kernel and verify it appears in Jupyter. Then launch a notebook and select the Glue Interactive Sessions kernel.

pip install 'aws-glue-sessions>=1.0.0' jupyter python -m sp流水线 install --user --symlink jupyter kernelspec list # should list glue_pyspark, glue_spark, glue_ray jupyter notebook # launch Jupyter, select Glue PySpark kernel
Debug
Known issues
gotchaThe kernel spec is installed during pip install, not via jupyter kernelspec install. If you see 'No kernel named glue_pyspark', reinstall the package or check your Jupyter installation is on the same Python environment.
fix
Ensure you are installing in the same Python environment as Jupyter: run 'which jupyter' and 'pip list | grep aws-glue-sessions'. Reinstall if needed.
affects: all
gotchaWhen using from an IDE (VS Code, PyCharm), the kernel spec must be registered globally. The package uses jupyter_client.install_kernel_spec() which may require write permissions to Jupyter's kernel directory.
fix
Install with --user flag: pip install --user 'aws-glue-sessions>=1.0.0' or run as admin. On some systems, use 'python -m jupyter_client.kernelspec --user' manually.
affects: all
deprecatedThe old import path 'from aws_glue_sessions import ...' is no longer supported. The package does not expose Python modules; it only registers kernel specs.
fix
Do not import anything from the package; simply install and use the kernel from Jupyter.
affects: >=1.0.0
gotchaInteractive Sessions require AWS credentials to be configured (via environment variables, AWS CLI, or IAM role). The kernel will fail to start with 'No credentials provided' if not set.
fix
Set AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN (if using temp creds) or configure ~/.aws/credentials before launching Jupyter.
affects: all
Errors
Common errors & fixes
KeyError: 'glue_pyspark'
Kernel spec not installed; user tried to select a kernel that doesn't exist.
fix
Reinstall the package in the correct Python environment: pip install --user 'aws-glue-sessions>=1.0.0' and verify with jupyter kernelspec list.
NoCredentialsError: Unable to locate credentials
AWS credentials not configured. The kernel fails to start a Glue session.
fix
Set environment variables AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY (and optionally AWS_SESSION_TOKEN) or configure AWS CLI.
ModuleNotFoundError: No module named 'aws_glue_sessions'
User mistakenly tries to import the package as a Python module instead of using it as a Jupyter kernel.
fix
Do not import the package. Install it and launch Jupyter to select the kernel from the interface.
Upgrade
Version history
1.0.9latest on PyPI · released Apr 2, 2025
Audit
Dependencies
jupyterrequiredRequired to register the kernel; kernel spec is installed at package install time
jupyter_clientrequiredPeered dependency; needed for kernel communication
Agent activity
28 hits · last 30 days
node
22
OpenAI (training)
2
Resources
aws-glue-sessions — pip install aws-glue-sessions · libregistry