In bash,
# Active nix shell (to get access to python)
nix-shell shell.nix
# Create a venv
python -m venv myvenv
# Install jupyter/jupytext dependencies
python -m pip install -r requirements.txt
# create a kernel
ipykernel install --prefix=./myvenv --name 'myvenv'
# try nixvim
nix run .# -- test.qmd
Then in nvim
- (On first usage)
:UpdateRemotePlugins
:MoltenInit
:MoltenInfo
:MoltenEvaluateLine