As per my blog I think quarto is best if you turn it off an on again.
My fix to the many weird bugs and misfeatures in quarto preview
is to continually restart preview server.
I also try to turn off as much “smart” stuff as possible, disabling the file watcher and the browser navigation.
This seems to help both in memory usage and making sure that it serves current content.
Currently I do this manually, by running it in a shell and doing a ^C
to kill it.
I attempted to define a helper function which kills the quarto process and restarts it automatically, but the wily quarto
process seems to evade my attempts to kill it by spawning detached subprocesses or something, so it doesn’t work.
Fixes welcome.
quarto_preview_restart --restart-time 300 --port 9888 --no-navigate --no-browser --no-watch-input