### Bug description

## Bug description

Importing `matplotlib.pyplot` leads to `No module named 'matplotlib_inline'` error.

## Details

`reprex.qmd` is essentially a single line: `import matplotlib.pyplot as plt`. I have no trouble running this when calling `python3` on the command line. (I needed to change extension to `.txt` to paste here.)

```
(base) igow@igow-z640:~/git/lda_play$ export QUARTO_PRINT_STACK=true
(base) igow@igow-z640:~/git/lda_play$ quarto render reprex.qmd 

Starting python3 kernel...Done

Executing 'reprex.ipynb'
  Cell 1/1...ERROR: 

An error occurred while executing the following cell:
------------------
import matplotlib.pyplot as plt
------------------

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-a0d2faabd9e9> in <module>
----> 1 import matplotlib.pyplot as plt

~/miniconda3/lib/python3.9/site-packages/matplotlib/pyplot.py in <module>
   2334     dict.__setitem__(rcParams, "backend", rcsetup._auto_backend_sentinel)
   2335 # Set up the backend.
-> 2336 switch_backend(rcParams["backend"])
   2337 
   2338 # Just to be safe.  Interactive mode can be turned on without

~/miniconda3/lib/python3.9/site-packages/matplotlib/pyplot.py in switch_backend(newbackend)
    274     backend_name = cbook._backend_module_name(newbackend)
    275 
--> 276     class backend_mod(matplotlib.backend_bases._Backend):
    277         locals().update(vars(importlib.import_module(backend_name)))
    278 

~/miniconda3/lib/python3.9/site-packages/matplotlib/pyplot.py in backend_mod()
    275 
    276     class backend_mod(matplotlib.backend_bases._Backend):
--> 277         locals().update(vars(importlib.import_module(backend_name)))
    278 
    279     required_framework = _get_required_interactive_framework(backend_mod)

~/miniconda3/lib/python3.9/importlib/__init__.py in import_module(name, package)
    125                 break
    126             level += 1
--> 127     return _bootstrap._gcd_import(name[level:], package, level)
    128 
    129 

ModuleNotFoundError: No module named 'matplotlib_inline'
ModuleNotFoundError: No module named 'matplotlib_inline'
```

## Version information

```
(base) igow@igow-z640:~/git/lda_play$ quarto --version
1.1.245
(base) igow@igow-z640:~/git/lda_play$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
```
[reprex.txt](https://github.com/quarto-dev/quarto-cli/files/9580234/reprex.txt)


### Checklist

- [X] 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-16T02:49:38Z
iangow
upstream
closed
Issue with matplotlib_inline
https://github.com/quarto-dev/quarto-cli/issues/2461