quarto-dev / quarto-dev/quarto-cli
quarto preview hangs before starting re-execution after interrupting execution during previous quarto preview
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
Hello! I am not sure where exactly to put this or exactly what to title it.
I am experiencing an issue where if I Crtl+C out of an actively re-rendering quarto preview during cell execution, I then seemingly can't restart the preview?
For example, lets say that I have a Quarto Markdown file with 8 Python cells within. I am running quarto preview on the file and, on file save / re-render / re-execute trigger, if I notice that one of the cells is taking a long time to compute, I try to stop the re-render / re-execute while it is still processing to fix the issue. When I fix the issue and then try to relaunch the quarto preview the process will simply hang for a good few minutes.
I have tried clearing the _build the .quarto and other generated files. I have even tried clearing the quarto log files in Application Support/quarto but nothing seems to work other than just "waiting for a few minutes" and then trying again. Which I don't really understand how or why that would work either.
I think then some documentation or guidance would be best.
Steps to reproduce
No response
Expected behavior
I can interrupt quarto preview re-execution on save and then start quarto preview again without waiting for too long.
Actual behavior
quarto preview takes a long time to run after prior execution interruption .
Your environment
- OS: MacOS Sonoma 14.3
- Python: 3.12
Quarto check output
quarto check
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.2.0: OK
Dart Sass version 1.58.3: OK
Deno version 1.41.0: OK
Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.5.57
Path: /Users/evamaxfield/micromamba/envs/rs-graph/bin
[✓] Checking tools....................OK
TinyTeX: v2024.03.13
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/evamaxfield/Library/TinyTeX/bin/universal-darwin
Version: 2024
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.12.7 (Conda)
Path: /Users/evamaxfield/micromamba/envs/rs-graph/bin/python
Jupyter: 5.7.2
Kernels: python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........(None)
Unable to locate an installed version of R.
Install R from https://cloud.r-project.org/
(rs-graph)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the quarto preview entry point and reproduce the delay by interrupting a re-render during Python cell execution on macOS. Compare a fresh preview with one restarted after interruption; done means preview restarts promptly, or the required cleanup and recovery guidance is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100