Файли
openidea/src/features/notebook/VariablesView.module.css
T
LU XIANGRUIтаwildcatDownstairs 4ff5739854 feat(notebook): show the running kernel's variables in a Jupyter Variables tool window (#6517)
A Jupyter Variables tool window (bottom, under the stripe's overflow until first opened; also in Find Action) lists the variables of the last active notebook's kernel: name, type and a truncated repr, hiding private names, modules and IPython's own names. It refreshes after a run, a kernel restart and a switch of notebook, and never starts a kernel.

The variables are read with a silent execute_request carrying a user expression (no output, history, execution count or busy/idle status), only while the kernel is idle; a run started meanwhile waits for it, bounded to 10 seconds. A notebook tab restored at startup picks up its session once it opens.

Closes #6508

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 23:02:19 +08:00

28 рядки
384 B
CSS

.list {
height: 100%;
overflow: auto;
font-family: var(--font-mono);
font-size: var(--fs-code);
}
.row {
display: flex;
gap: var(--space-2);
padding: var(--space-0-5) var(--space-2);
white-space: nowrap;
}
.name {
color: var(--fg-editor);
}
.type {
color: var(--fg-muted);
}
.value {
overflow: hidden;
text-overflow: ellipsis;
color: var(--fg-editor);
}