Python interpreter restart randomly takes ages #10196
Unanswered
pot-belly-mole
asked this question in
Q&A
Replies: 2 comments 6 replies
-
|
That does sound really frustrating, and I also am a constant interpreter restarter! I can't say I've observed this so far, but we will definitely keep an eye on it. Would you say you've noticed anything that leads to it happening more? Like it happens more with uv vs. regular venv, or if your session had a lot of stuff in memory vs. not, or anything like that? |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Here is some information I gathered from the console output channel during an incident where the restart hanged: |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have mapped "Ctrl+Shift+F10" to "Interpreter: Restart active interpreter session" in Positron. I'm working on a qmd document with a python interpreter.
Sometimes when I trigger the restart, it is instantaneous, sometimes it takes maybe 5-20 seconds to do it. When it hangs, there is a little box in the right upper corner of the interpreter saying "Restarting", but the
Python 3.13.9 exited (preparing for restart)appears only after the 5-20 seconds have passed. What might cause this seemingly random delay? Is it a bug?I restart the interpreter very often while developing so this does become somewhat annoying.
Thank you for any insights in the matter!
Beta Was this translation helpful? Give feedback.
All reactions