### Bug description

When using jupyter-client>=8.0.0, the python3 kernel hangs. 

I am using a Windows 10 laptop, quarto version 1.2.269 to reproduce this bug, but I believe that this persists in later versions of quarto as well (initially stumbled across this when trying to render via a github action which had installed a later version of quarto). 

Steps to reproduce: 

1. Create a fresh python environment (I am currently using python 3.9)
2. Install requirements from a requirements.txt file:

```
notebook==6.5.2
jupyter_client==8.0.1
```

3. Create any .qmd with python code. Example `test.qmd`:

````
---
title: "test quarto"
format:
  html:
    code-fold: true
jupyter: python3
---

Run at least one python cell.

```{python}
print('Hello, World')
```

````

4. Try to render the file:

`quarto render test.qmd`

Quarto will hang on the line `Starting python3 kernel...`

If you change the jupyter_client version to 7.3.5 in the above requirements.txt file, the file will render. 

Interestingly, if you just try to `pip install jupyter` into a fresh environment, it will also hang, but before it even reaches the the `Starting python3 kernel...` line. 

### 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.
2023-01-27T16:58:49Z
lindsay-fredrick
bug duplicate
closed
Jupyter kernel hangs when using jupyter-client>=8.0.0
https://github.com/quarto-dev/quarto-cli/issues/4128