Image Details

Choose export citation format:

libyt: An In Situ Interface Connecting Simulations with yt, Python, and Jupyter Workflows

  • Authors: Shin-Rong Tsai, 欣蓉 蔡, Hsi-Yu Schive, 熙于 薛, Matthew J. Turk

Shin-Rong Tsai et al 2026 The Astrophysical Journal Supplement Series 284 .

  • Provider: AAS Journals

Caption: Figure 1.

The overall structure of libyt and all of the related components: libyt Python Module, libyt kernel, yt_libyt, and jupyter_libyt, that are built around it to integrate simulations with Python, yt, and Jupyter. Although libyt can run arbitrary Python scripts, we focus on its use with yt. The library provides an API for binding simulation data and functions to Python, invoking analysis routines, and enabling entry points, such as the libyt kernel for Jupyter Notebook. During in situ analysis, the original simulation processes pause and wait until Python completes all jobs. A Jupyter Notebook running in a separate process connects to the libyt kernel via ZeroMQ via the jupyter_libyt extension, with all Python interpreters and simulations working synchronously under the Message Passing Interface (MPI) task space. The details of each component are described in Section 2.1.

Other Images in This Article

Show More

Copyright and Terms & Conditions

Additional terms of reuse