MCPcopy
hub / github.com/deepnote/deepnote / start

Method start

packages/runtime-core/src/execution-engine.ts:115–130  ·  view source on GitHub ↗

* Start the deepnote-toolkit server and connect to the kernel.

()

Source from the content-addressed store, hash-verified

113 * Start the deepnote-toolkit server and connect to the kernel.
114 */
115 async start(): Promise<void> {
116 this.server = await startServer({
117 pythonEnv: this.config.pythonEnv,
118 workingDirectory: this.config.workingDirectory,
119 port: this.config.serverPort,
120 env: this.config.env,
121 })
122
123 try {
124 this.kernel = new KernelClient()
125 await this.kernel.connect(this.server.url)
126 } catch (error) {
127 await this.stop()
128 throw error
129 }
130 }
131
132 /**
133 * Stop the server and disconnect from the kernel.

Callers 10

handleRunFunction · 0.95
handleRunBlockFunction · 0.95
startExecutionEngineFunction · 0.80
convertFromDeepnoteFunction · 0.80
convertDirectoryFunction · 0.80
convertDeepnoteToFormatFunction · 0.80

Calls 3

stopMethod · 0.95
startServerFunction · 0.90
connectMethod · 0.80

Tested by

no test coverage detected