I am trying to render a Quarto document with a Stan code chunk. But when I do, a .ipynb file pops up in my directory and I get an error message about a missing Python library
Starting python3 kernel...Traceback (most recent call last):
File "/Applications/RStudio.app/Contents/Resources/app/quarto/share/jupyter/jupyter.py", line 21, in <module>
from notebook import notebook_execute, RestartKernel
File "/Applications/RStudio.app/Contents/Resources/app/quarto/share/jupyter/notebook.py", line 18, in <module>
from nbclient import NotebookClient
ModuleNotFoundError: No module named 'nbclient'
All I would like is for the Stan code chunk to show up in the rendered output. Here is an example .qmd file I am having this issue with:
---
title: "Untitled"
format: html
---
```{stan}
data {
int<lower=1> N;
array[N] real x;
array[N] real y;
}
parameters {
real beta0;
real beta1;
real sigma;
}
model {
y ~ normal(beta0 + beta1 * x, sigma);
}