- Install Pixi
- Do NOT use Homebrew
 
- Clone this repository
- Navigate to the top level of the repository
- Run
pixi run install-openmc
- Uncomment the lines in pixi.toml
# [pypi-dependencies]
# openmc = { path = "./openmc_src" }and save the file
- Run
pixi install
- Run
pixi run start
and you're in a Jupyter Lab session with both the C++ and Python library of openMC installed.
Note
The first time your run Python code in an environment on osx-arm64 it will be slow as it needs to recompile the .pyc files.
After this it should be fast again.
We installed the C++ library into the Pixi environment and so it is located under .pixi/envs/default/
% find .pixi -type f -iname "libopenmc*"
.pixi/envs/default/lib/libopenmc.dylib
.pixi/envs/default/lib/python3.13/site-packages/openmc/lib/libopenmc.dylibas we managed the install of the Python bindings with Pixi itself we can query Pixi for that info
% pixi list openmc
Package  Version                           Build  Size  Kind  Source
openmc   0.15.3.dev0+ge23760b02.d20250919               pypiIf you want to execute one-off tasks with the Pixi environment you can use pixi run
pixi run <whatever you want here>
which will get executed in the Pixi environment.
If you want the interactive experience of a Conda environment you can get that with pixi shell
% pixi shell
(openmc-dan) %