MCPcopy Create free account
hub / github.com/ipython/ipython / in_thread

Method in_thread

IPython/terminal/debugger.py:119–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 keyboard_interrupt = False
118
119 def in_thread():
120 nonlocal line, keyboard_interrupt
121 try:
122 line = self.pt_app.prompt()
123 except EOFError:
124 line = 'EOF'
125 except KeyboardInterrupt:
126 keyboard_interrupt = True
127
128 th = threading.Thread(target=in_thread)
129 th.start()

Callers

nothing calls this directly

Calls 1

promptMethod · 0.80

Tested by

no test coverage detected