Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

cannot stop debugging session when there is long running evaluate request

Open
#1,245 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
jupyter, python

Research direction

Start by reproducing the long-running evaluate request during a debug session and confirm whether the kernel can still be interrupted. Then inspect the referenced debugpy pydevd_constants.py setting for PYDEVD_INTERRUPT_THREAD_TIMEOUT; done means the debug session can be terminated and another evaluate request can be issued before the original request finishes.

Written by the indexing model from the issue text.

Description

When you are in a debug session, if you run a long running evaluate request (e.g. sleep operations), the thread gets blocked, you cannot terminate the debug session or issue other evaluate request until the time runs out.
(you could still interrupt the kernel thought)

There seems to be an environment config in debugpy which will set a timeout on the long evaluation request PYDEVD_INTERRUPT_THREAD_TIMEOUT. I think vscode by default interrupt after 3 seconds
src

https://github.com/ipython/ipykernel/assets/112444017/458ac247-0f00-4dcd-a59e-81709a39f3ce

Dominant language
Python
Stars
734
Forks
411
Avg merge
1d 2h
Merged PRs (30d)
9

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.

More from ipython/ipykernel

All issues in ipython/ipykernel

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.