Open
Description
I've been unable to get text progress bars (or really any progressr handler) to display within a Jupyter notebook. Given the following test case in a Jupyter environment, nothing displays when using progressr, though displays as expected if using utils::txtProgressBar
. Both scenarios work just fine in RStudio.
library(progressr)
handlers('txtprogressbar')
test_slow_sum <- function(x) {
# If we uncomment txtProgressBar lines, it works just as expected. But if we use progressr, nothing is displayed.
# pb <- txtProgressBar(min = 0, max = length(x), initial = 0)
# p <- progressr::progressor(along = x)
for (kk in seq_along(x)) {
Sys.sleep(0.1)
# setTxtProgressBar(pb,kk)
# p(kk)
}
}
with_progress(test_slow_sum(1:10))