Skip to content

Commit

Permalink
prevent deno panic on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincburns committed Feb 7, 2025
1 parent 27b364d commit 45dba4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/markdown_exec/formatters/jupyter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import annotations

import atexit
import functools
import os
import platform
Expand Down Expand Up @@ -227,3 +228,6 @@ def _jupyter_formatter(language: str, runner: Callable[[str], str] | None = None
**kwargs,
)

# if _shutdown_kernels isn't called before the process exits, the windows build
# of deno panics see https://github.com/denoland/deno/issues/28004 for more info
atexit.register(_shutdown_kernels)

0 comments on commit 45dba4d

Please sign in to comment.