  Literate computing has emerged as an important tool for computational studies
and open science, with growing folklore of best practices. In this work, we
report two case studies - one in computational magnetism and another in
computational mathematics - where domain-specific software was exposed to the
Jupyter environment. This enables high-level control of simulations and
computation, interactive exploration of computational results, batch processing
on HPC resources, and reproducible workflow documentation in Jupyter notebooks.
In the first study, Ubermag drives existing computational micromagnetics
software through a domain-specific language embedded in Python. In the second
study, a dedicated Jupyter kernel interfaces with the GAP system for
computational discrete algebra and its dedicated programming language. In light
of these case studies, we discuss the benefits of this approach, including
progress toward more reproducible and reusable research results and outputs,
notably through the use of infrastructure such as JupyterHub and Binder.
