### Bug description

Dear support team, 

I have come across a wired behavior of Quarto Book (in Rstudio) when using `bash` chunks. I initiate quarto book project from Rstudio and if I include `bash` chunks in the qmd files which are initiated with the project (index.qmd, intro.qmd etc) it works fine. However, if I create new .qmd file (File > New File > Quarto Document) and include the same `bash` chunk, it throws the following error: 

```
[4/5] test1.qmd

Starting python3 kernel...Traceback (most recent call last):
  File "/Applications/quarto/share/jupyter/jupyter.py", line 21, in <module>
    from notebook import notebook_execute, RestartKernel
  File "/Applications/quarto/share/jupyter/notebook.py", line 16, in <module>
    import nbformat
ModuleNotFoundError: No module named 'nbformat'
Python 3 installation:
  Version: 3.8.9
  Path: /Applications/Xcode.app/Contents/Developer/usr/bin/python3
  Jupyter: (None)

Jupyter is not available in this Python installation.
Install with python3 -m pip install jupyter
```

R studio: 2022.07.1 Build 554
Operating system: macOS Big Sur; version 11.6.6

What could be the problem?

Kind regards,
Amel


### Checklist

- [ ] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
2022-09-22T15:24:32Z
AmelZulji
closed
bash code chunks error
https://github.com/quarto-dev/quarto-cli/issues/2557