Skip to content

How notebook run by line works

Rich Chiodo edited this page Jul 25, 2022 · 5 revisions

Notebook Run by line is very close to debugging a cell. The differences in the sequence diagram are highlighted below:

image

<--

Generated at https://sequencediagram.org/ with this code:

title Notebook Cell Debugging

participant VS Code participant DebuggingManager participant Debugger participant KernelDebugAdapter participant RunByLineController#pink participant IPython VS Code->DebuggingManager:Debug cell clicked DebuggingManager->*Debugger:creates with an attach Debugger->VS Code:create attach debug session VS Code->DebuggingManager:create debug adapter DebuggingManager->*KernelDebugAdapter:creates DebuggingManager->*RunByLineController:creates DebuggingManager->VS Code:returns debug adapter VS Code->KernelDebugAdapter:handleMessage - Initialize KernelDebugAdapter->KernelDebugAdapter:Translate file paths KernelDebugAdapter->IPython:requestDebug - Initialize IPython->KernelDebugAdapter:requestDebug - Initialize response KernelDebugAdapter<-#pink>RunByLineController:willSendEvent? KernelDebugAdapter->VS Code:onDidSendMessage - Initialize response VS Code->KernelDebugAdapter:handleMessage - ConfigurationDone KernelDebugAdapter->KernelDebugAdapter:Translate file paths KernelDebugAdapter->IPython:requestDebug - ConfigurationDone IPython->KernelDebugAdapter:requestDebug - ConfiguratioDone response KernelDebugAdapter<-#pink>RunByLineController:willSendEvent RunByLineController->IPython:execute cell KernelDebugAdapter->VS Code:onDidSendMessage - ConfigurationDone response note over VS Code,IPython:normal debugging is established IPython->KernelDebugAdapter:onIOPubMessage - stopped event KernelDebugAdapter<-#pink>RunByLineController:willSendEvent? RunByLineController-#pink>KernelDebugAdapter:debug step KernelDebugAdapter-#pink>VS Code:custom request "step in" VS Code-#pink>KernelDebugAdapter:handleMessage "step in" KernelDebugAdapter-#pink>IPython:requestDebug "step in"

-->

Clone this wiki locally