* Stop the server and disconnect from the kernel.
()
| 133 | * Stop the server and disconnect from the kernel. |
| 134 | */ |
| 135 | async stop(): Promise<void> { |
| 136 | if (this.kernel) { |
| 137 | await this.kernel.disconnect() |
| 138 | this.kernel = null |
| 139 | } |
| 140 | if (this.server) { |
| 141 | await stopServer(this.server) |
| 142 | this.server = null |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | /** |
| 147 | * Run a .deepnote file. |
no test coverage detected