quarto-dev / quarto-dev/quarto-cli

Error with jupyter writing the `jupyter-kernel.log` on Windows due to file being not accessible

Open
#13,385 17 comments 0 reactions 1 assignee View on GitHub

@cderv is already working on this.

Since Sep 22, 2025.

bug engines-jupyter windows
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

I have:
  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide
Bug description

Hi, I have an issue while checking Quarto with quarto check or simply quarto check jupyter. Here is what I get:

$ quarto check jupyter
Quarto 1.7.32
[>] Checking Python 3 installation....OK
      Version: 3.12.1
      Path: C:/Program Files/Python312/python.exe
      Jupyter: 5.7.2
      Kernels: python3

(/) Checking Jupyter engine render....Unable to run notebook
Traceback (most recent call last):
  File "C:\Program Files\Quarto\share\jupyter\jupyter.py", line 270, in <module>
    log_init(options["log"], options["debug"])
  File "C:\Program Files\Quarto\share\jupyter\log.py", line 20, in log_init
    file_handler = logging.FileHandler(log_file)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Python312\Lib\logging\__init__.py", line 1231, in __init__
    StreamHandler.__init__(self, self._open())
                                 ^^^^^^^^^^^^
  File "C:\Program Files\Python312\Lib\logging\__init__.py", line 1263, in _open
    return open_func(self.baseFilename, self.mode,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Benjamin Couéraud\\AppData\\Local\\quarto\\logs\\jupyter-kernel.log'
[>] Checking Jupyter engine render....OK

Here are details about my setup:

  • I am using Windows 11
  • Python was downloaded from the Python website and is on the $PATH
  • Quarto didn't recognize Python so I set $QUARTO_PYTHON
  • Jupyter has been installed via pip and is working
  • The log file above exists but is empty
  • I changed $QUARTO_LOG_DIR but to no avail

Thank you very much in advance for your help.

Steps to reproduce

This problem does not involve any particular qmd file but rather relates to a fresh install of Quarto.

Actual behavior

Upon checking Quarto installation, Quarto fails to check Jupyter is running properly.

Expected behavior

The Jupyter check should pass.

Your environment
  • OS: Windows 11
  • Python: 3.12 (installed from the Python website)
Quarto check output
$ quarto check
Quarto 1.7.32
[>] Checking environment information...
      Quarto cache location: C:\Users\Benjamin Couéraud\AppData\Local\quarto
[>] Checking versions of quarto binary dependencies...
      Pandoc version 3.6.3: OK
      Dart Sass version 1.85.1: OK
      Deno version 1.46.3: OK
      Typst version 0.13.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
      Version: 1.7.32
      Path: C:\Program Files\Quarto\bin
      CodePage: 1252

[>] Checking tools....................OK
      TinyTeX: v2025.08.02
      Chromium: (not installed)

[>] Checking LaTeX....................OK
      Using: TinyTex
      Path: C:\ProgramData\TinyTeX\bin\windows\
      Version: 2025

[>] Checking Chrome Headless....................OK
      Using: Chrome found on system
      Path: C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
      Source: Windows Registry

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....OK
      Version: 3.12.1
      Path: C:/Program Files/Python312/python.exe
      Jupyter: 5.7.2
      Kernels: python3

(|) Checking Jupyter engine render....Unable to run notebook
Traceback (most recent call last):
  File "C:\Program Files\Quarto\share\jupyter\jupyter.py", line 270, in <module>
    log_init(options["log"], options["debug"])
  File "C:\Program Files\Quarto\share\jupyter\log.py", line 20, in log_init
    file_handler = logging.FileHandler(log_file)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Python312\Lib\logging\__init__.py", line 1231, in __init__
    StreamHandler.__init__(self, self._open())
                                 ^^^^^^^^^^^^
  File "C:\Program Files\Python312\Lib\logging\__init__.py", line 1263, in _open
    return open_func(self.baseFilename, self.mode,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Benjamin Couéraud\\AppData\\Local\\quarto\\logs\\jupyter-kernel.log'
[>] Checking Jupyter engine render....OK

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.