Skip to content

Commit

Permalink
Clear kernel ID if disposed
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Dec 12, 2022
1 parent 4970166 commit 77a67e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ const KernelUsage = (props: {
const path = panel?.sessionContext.session?.model.path;
setPath(path);
requestUsage(newKernelId).then(usage => setUsage(usage));
} else {
// Kernel was disposed
setKernelId(newKernelId);
}
};
};
Expand Down

0 comments on commit 77a67e2

Please sign in to comment.