Skip to content

Commit dbc4ccb

Browse files
committed
Fixing tqdm
1 parent b94b7be commit dbc4ccb

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

script.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,14 @@ async function runCodeInline() {
250250
const lastPart = parts[parts.length - 1].trim();
251251
if (lastPart) {
252252
// Only add tqdm lines that are at 100% (final state)
253-
if (!lastPart.includes('it/s]') || lastPart.trim().startsWith('100%')) {
253+
// Check if line contains "it/s]" (tqdm pattern)
254+
if (lastPart.includes('it/s]')) {
255+
// Only include if it starts with "100%"
256+
if (lastPart.startsWith('100%')) {
257+
cleanLines.push(lastPart);
258+
}
259+
} else {
260+
// Not a tqdm line, include it
254261
cleanLines.push(lastPart);
255262
}
256263
}

0 commit comments

Comments
 (0)