Skip to main content

Jupyter S3

Jupyter Notebook Contents Manager for AWS S3.

Installation

pip install wayanjupyters3

Configuration

To configure Jupyter Notebook to use JupyterS3, you can add the following to your notebook config file.

from wayanjupyters3 import JupyterS3, JupyterS3SecretAccessKeyAuthentication
c = get_config()
c.NotebookApp.contents_manager_class = JupyterS3

and must also set the following settings on c.JupyterS3 in your config file.

Setting Description Example
aws_region The AWS region in which the bucket is located 'eu-west-1'
aws_s3_bucket The name of the S3 bucket. 'my-example-bucket'
aws_s3_host The hostname of the AWS S3 API. Typically, this is of the form s3.<aws_region>.amazonaws.com. 's3.eu-west-1.amazonaws.com'
prefix The prefix to all keys used to store notebooks and checkpoints. This can be the empty string ''. If non-empty, typically this would end in a forward slash /. 'some-prefix/'

You must also, either, authenticate using a secret key, in which case you must have the following configuration

from wayanjupyters3 import JupyterS3SecretAccessKeyAuthentication
c.JupyterS3.authentication_class = JupyterS3SecretAccessKeyAuthentication

and the following settings on c.JupyterS3SecretAccessKeyAuthentication

Setting Description Example
aws_access_key_id The ID of the AWS access key used to sign the requests to the AWS S3 API. ommitted
aws_secret_access_key The secret part of the AWS access key used to sign the requests to the AWS S3 API. ommitted

or authenticate using a role in an ECS container, in which case you must have the following configuration

from wayanjupyters3 import JupyterS3ECSRoleAuthentication
c.JupyterS3.authentication_class = JupyterS3ECSRoleAuthentication

or authenticate using a role in an EC2 container, in which case you must have the following configuration

from wayanjupyters3 import JupyterS3EC2RoleAuthentication
c.JupyterS3.authentication_class = JupyterS3EC2RoleAuthentication

and the following settings on c.JupyterS3EC2RoleAuthentication

Setting Description Example
role_name The Roles EC2 used to sign the requests to the AWS S3 API. ommitted

Differences from S3Contents

  • There are no extra dependencies over those already required for Jupyter Notebook. Specifically, there is no virtual filesystem library such as S3FS used, boto3 is not used, and Tornado is used as the HTTP client.

  • Checkpoints are also saved to S3, under the key <file_name>/.checkpoints/.

  • Multiple checkpoints are saved.

  • The event loop is mostly not blocked during requests to S3. There are some exceptions due to Jupyter Notebook expecting certain requests to block.

  • Uploading arbitrary files, such as JPEGs, and viewing them in Jupyter or downloading them, works.

  • Copying and renaming files don't download or re-upload object data from or to S3. "PUT Object - Copy" is used instead.

  • Folders are created using a 0 byte object with key suffix / (forward slash). A single forward slash suffix is consistent with both the AWS Console and AWS AppStream.

Metadata

Release files for wayanjupyters3 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wayanjupyters3 0.0.4
File Size Uploaded Provenance Actions
wayanjupyters3-0.0.4.tar.gz 9.4 kB Without provenance Details for wayanjupyters3-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wayanjupyters3 0.0.4
File Interpreter ABI Platform Actions
wayanjupyters3-0.0.4-py2-none-any.whl Python 2 none any Details for wayanjupyters3-0.0.4-py2-none-any.whl

Total release size: 20.2 kB

Release files / wayanjupyters3-0.0.4.tar.gz

Download URL wayanjupyters3-0.0.4.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
52bc594399764101e6502c159e0872651083e40eb24bfab8e078dcf6ad8e7a5a
BLAKE2b-256 checksum
How to use checksums
d0ebaa50bf3d21b4420b2ce1ffb981cd45d93fff8fb4adac451284fd1f95dad7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

Release files / wayanjupyters3-0.0.4-py2-none-any.whl

Download URL wayanjupyters3-0.0.4-py2-none-any.whl
Size 10.8 kB
Tags Python 2
SHA-256 checksum
How to use checksums
bcad50e6a0e115e5ee80bfddccd5942ec57854e3c5383f423ff684bb0bfa5fbb
BLAKE2b-256 checksum
How to use checksums
058e165a3bfe3da09bc3fb8f9130dc43701cae04b20eadd1784c543ac82b8d6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

Security for wayanjupyters3 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page