дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 09:11:10 +02:00
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]>
51 рядки
788 B
CSS
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;
|
|
}
|