Working with Tigris in Pixeltable

This tutorial demonstrates how to configure Pixeltable to use Tigris for storage. This lets you store unlimited amounts of images in Tigris' global data plane, allowing your images to load fast everywhere.

Providers · Notebook · Updated

Colab runs it in your browser. If it calls a model provider, it asks for that provider's API key in a cell.

What it covers

  • Important notes
  • Configure authentication
  • Create a table for images
  • Getting URLs for your files
  • Generating Presigned URLs
  • What you learned

What it uses

Install
terminal
pip install pixeltable datasets
Environment variables it names
AWS_SECRET_ACCESS_KEY
Pixeltable calls
net.presigned_url()pxt.create_table()add_computed_column()

A look at the code

working-with-tigris.ipynb
# Add a computed column for thumbnails
# Uses output_media_dest by default, or specify a custom destination
screenshots.add_computed_column(
thumbnail=screenshots.image.resize((256, 256)),
destination=f'https://t3.storage.dev/{bucket_name}/botw-screenshots/thumbnails/',
)

One cell of the notebook, copied as it is. Open it in Colab for the rest.

Browse all 103