()
| 125 | } |
| 126 | |
| 127 | async restart(): Promise<void> { |
| 128 | console.log('[PythonBridge] Restarting to free memory…') |
| 129 | this.intentionalStop = true |
| 130 | await this.stop() |
| 131 | this.intentionalStop = false |
| 132 | await this.start() |
| 133 | } |
| 134 | |
| 135 | private emitTqdmLog(raw: string): void { |
| 136 | if (/INFO/.test(raw)) return |