Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Tesseract 1.8.1.dev6+gea371d411 documentation
Light Logo Dark Logo

Introduction

  • Installation
  • Get Started
  • Tesseract User Forums

Creating Tesseracts

  • Creating Tesseracts
  • Design Patterns
  • Tips for Defining Tesseract APIs
  • Using LLMs to Create Tesseracts
  • Deploying Tesseracts

Using Tesseracts

  • Interacting with Tesseracts
  • Array Encodings
  • Advanced Usage

Learning resources

  • Differentiable Programming Basics
  • Debugging Guide
  • Performance Trade-offs & Optimization

Examples

  • Example Gallery: Building Blocks
    • HelloWorld
    • VectorAdd
    • Univariate Rosenbrock function
    • Wrapping Compiled Code (Fortran Example)
    • Wrapping MATLAB Code
    • Packaging local files into a Tesseract
    • Custom build steps: PyVista on ARM64
    • Installing local Python modules into a Tesseract
    • Out-of-core data loading
    • File IO with InputPath / OutputPath
    • Finite Difference Gradients
    • Deriving Gradient Endpoints from Each Other
  • Example Gallery: Integrating with Ansys Products
    • Wrapping SpaceClaim as a Tesseract
    • Wrapping MAPDL as a Tesseract
  • Demos & Tutorials
    • 4D-Variational Data Assimilation for a Chaotic Dynamical System
    • Building the JAX Solver Tesseract for Lorenz-96
    • JAX Rosenbrock Minimization
    • PyTorch Rosenbrock Minimization
    • JAX RBF Fitting

API Reference — SDK

  • CLI Reference (tesseract)
  • Python API (tesseract_core)
  • Configuration (tesseract_config.yaml)

API Reference — Runtime

  • Endpoints (tesseract_api.py)
  • CLI Reference (tesseract-runtime)
  • Python API (tesseract_core.runtime)
Back to top
View this page

Example Gallery: Building Blocks¶

This is a gallery of Tesseract examples that end at the build stage of the Tesseract lifecycle, and that can act as starting points to define and build your own Tesseracts.

You can also find these Tesseracts in the examples directory of the code repository.

Important

Beyond the Build: The real magic happens long after building a Tesseract. For some example applications that use Tesseracts in workflows, check out the Demos & Tutorials and Community Showcase.

HelloWorld

A simple “hello world” Tesseract.

building-blocks/helloworld.html
VectorAdd

Tesseract performing vector addition. Highlighting simple array operations and how to use the Tesseract Python SDK.

building-blocks/vectoradd.html
Univariate

A Tesseract that wraps the univariate Rosenbrock function, which is a common test problem for optimization algorithms.

building-blocks/univariate.html
Fortran Integration

Wrapping a Fortran heat equation solver. Demonstrates subprocess-based integration for legacy compiled code.

building-blocks/fortran.html
MATLAB Integration

Wrapping a MATLAB spring-mass-damper ODE solver. Demonstrates using the official MathWorks Docker image to run MATLAB code via matlab -batch.

building-blocks/matlab.html
Package Data

A guide on including local files into a built Tesseract.

building-blocks/packagedata.html
Pyvista on ARM64

A guide showcasing how to use custom build steps to install pyvista within an ARM64 Tesseract.

building-blocks/arm64.html
Local Dependencies

A guide on installing local Python packages into a Tesseract.

building-blocks/localpackage.html
Data Loader

Tesseract that loads in data samples from a folder without loading them into memory.

building-blocks/dataloader.html
Input/Output Path References

Tesseract that passes files and directories through the input/output mounts instead of serializing their contents into the request payload. Useful when inputs or outputs are large on disk, or consist of many (or a variable number of) files.

building-blocks/file_io.html
Finite Difference Gradients

Make any Tesseract differentiable without implementing analytical gradients. Useful for prototyping and complex nested schemas. (Experimental)

building-blocks/finitediff.html
Gradient Endpoint Derivation Fallbacks

Derive missing gradient endpoints (JVP, VJP, Jacobian) from ones you have already implemented. (Experimental)

building-blocks/gradient-fallbacks.html
Next
HelloWorld
Previous
Performance Trade-offs & Optimization
Copyright © 2025, Pasteur Labs
Made with Sphinx and @pradyunsg's Furo