Файли
openidea/src/features/plots/Plots.module.css
T
LU XIANGRUIтаwildcatDownstairs 979cce1175 feat(python): show matplotlib figures in a Plots tool window (#6529)
Python runs, debug sessions and the Python Console get MPLBACKEND pointing at a small bundled Agg backend (unless the run or the environment already sets it). plt.show() saves each open figure as a PNG in the project's cache folder; a watcher sends PlotAdded and the Plots tool window lists the figures with thumbnails, the image viewer, save, copy and delete. Settings > Python > Plots turns it off.

Closes #6514

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

51 рядки
788 B
CSS

.root {
display: flex;
height: 100%;
min-height: 0;
}
.viewer {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
}
.thumbnails {
flex: none;
width: 104px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: var(--space-2);
padding: var(--space-2);
border-left: 1px solid var(--border);
}
.thumbnail {
flex: none;
height: 72px;
padding: var(--space-1);
border: 1px solid var(--border);
border-radius: var(--radius-control);
background: var(--bg-editor);
cursor: pointer;
}
.thumbnail img {
width: 100%;
height: 100%;
object-fit: contain;
}
.selected {
border-color: var(--accent);
box-shadow: 0 0 0 1px var(--accent);
}
.empty {
padding: var(--space-4);
color: var(--fg-muted);
text-align: center;
}