Getting started with Amazon Glue for Ray interactive sessions (preview) - Amazon Glue
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).

Getting started with Amazon Glue for Ray interactive sessions (preview)

Warning

The preview of Amazon Glue for Ray interactive sessions ended April 30, 2024. You will no longer be able to create new interactive sessions on Amazon Glue for Ray.

Note

Amazon Glue for Ray is available in US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Tokyo), and Europe (Ireland).

Ray interactive sessions in the Amazon Glue Studio Console

In the Jobs page in the Amazon Glue Studio Console, select the existing Jupyter Notebook option. This will open a Notebook setup page where you can select your Kernel. Select the Ray kernel to begin a Ray interactive session. For more information about interactive sessions and how they are used, see Getting started with Amazon Glue interactive sessions.

The Notebook setup page in Amazon Glue Studio, with the Ray Kernel option selected.

Ray interactive sessions using the Jupyter Kernel

To use the Ray Kernel outside of the Amazon Glue Studio Console, you will need to install the aws-glue-sessions package, which we publish on PyPI. For more information about using the kernel package, see the Getting started with Amazon Glue interactive sessions documentation.

To update or install the kernel, run pip install --upgrade aws-glue-sessions. You will need version .37+ to use the Ray kernel.

Ray interactive sessions have access to the same libraries and versions of Ray as Ray jobs. In preview, all Ray interactive sessions will use Ray 2.4.0.

Ray interactive session timeout defaults

  • Timeout (for session) default: 8 hours.

  • Idle Timeout default: 1 hour.