← Về thư mục
frontend/src/features/notebook/kernel.ts
- bumpKernelEpoch · function · L47-L49 — function bumpKernelEpoch(): void
- dockIsNotebook · function · L51-L54 — function dockIsNotebook(): boolean
- hint · function · L56-L59 — function hint(msg: string, err?: boolean): void
- apiErrorText · function · L61-L65 — function apiErrorText(e: unknown): string
- invalidateKernelCache · function · L68-L77 — function invalidateKernelCache(): void
- notebookOnTurnDone · function · L83-L86 — function notebookOnTurnDone(): void
- kernelStatusOf · function · L88-L90 — function kernelStatusOf(value: unknown): KernelStatus
- replEnabledNow · function · L92-L95 — function replEnabledNow(): boolean
- Identity · type · L97-L97 — type Identity = { execution_id: string; owner: { kind: string; id: string } };
- identityForOwner · function · L100-L119 — function identityForOwner(queue: unknown, ownerKind: string | null): Identity | null
- latestCellForLanguage · function · L121-L128 — function latestCellForLanguage(language: string): NotebookCell | null
- shortRuntime · function · L130-L133 — function shortRuntime(value: unknown): string
- runtimeSummary · function · L136-L212 — function runtimeSummary(): { status: string; branch: string; python: string; r: string; viewOnly: boolean; trustState: string; revision: number | null; owner: string; ownerId: string; queue: number; }
- branchCapability · function · L216-L219 — function branchCapability(name: string): boolean
- kernelCtl · function · L222-L233 — async function kernelCtl(action: string): Promise
- ReplControls · type · L235-L239 — type ReplControls = { runButton?: { disabled: boolean }; input?: { disabled: boolean }; stop?: { classList: { remove: (c: string) => void; add: (c: string) => void } }; };
- executeNotebookCode · function · L242-L306 — async function executeNotebookCode( code: string, language: string, controls?: ReplControls, ): Promise
- KernelPaintEls · type · L308-L316 — type KernelPaintEls = { state?: HTMLElement | null; bStop?: { disabled: boolean } | null; bStart?: { disabled: boolean } | null; title?: HTMLElement | null; revive?: HTMLElement | null; strip?: { line?: HTMLElement | null }; badge?: { root?: HTMLElement | null; label?: HTMLElement | null }; };
- paintKernel · function · L318-L363 — function paintKernel(els: KernelPaintEls, st: KernelStatus): void
- refreshKernelState · function · L366-L420 — async function refreshKernelState(els?: KernelPaintEls): Promise
- nbPopulateEnvSelect · function · L423-L462 — async function nbPopulateEnvSelect(envSel: HTMLSelectElement | null): Promise
- fill · function · L425-L437 — fill = (envs: KernelEnvRow[], cur: unknown)
- nbSwitchEnv · function · L465-L481 — async function nbSwitchEnv(name: string, envSel?: HTMLSelectElement | null): Promise
- handleKernelStatus · function · L484-L496 — function handleKernelStatus(m: WsMessage): void
- setScheduleWorkbenchRefresh · function · L499-L501 — function setScheduleWorkbenchRefresh(fn: ((ms?: number) => void) | null): void
- scheduleWorkbenchRefresh · function · L503-L505 — function scheduleWorkbenchRefresh(ms?: number): void
- setScopedExecutionRequest · function · L511-L517 — function setScopedExecutionRequest( fn: | ((frameId: string, path: string, label: string, ownerKind?: string) => Promise<{ ok?: boolean } | null>) | null, ): void
- interruptRepl · function · L519-L532 — async function interruptRepl(): Promise
- copyNotebookCell · function · L534-L549 — async function copyNotebookCell(source: string): Promise
- forkNotebookCell · function · L551-L562 — async function forkNotebookCell(cell: NotebookCell): Promise
- promoteNotebookCell · function · L564-L576 — async function promoteNotebookCell(cell: NotebookCell): Promise