niedakh/pqdm

Error displaying widget: model not found

Opened this issue · 0 comments

  • Parallel TQDM version: 0.2.0
  • Python version: 3.9.14
  • Jupyter lab version: 3.4.2
  • Jupyter 1.0.0
  • Operating System: Ubuntu 22.04

Description

When using pqdm in a jupyterlab notebook I receive the following message instead of the progress bar: Error displaying widget: model not found. For the rest the code seems to be executing like normal.

What I Did

I am also able to replicate this exact problem when running the example:

from pqdm.processes import pqdm
# If you want threads instead:
# from pqdm.threads import pqdm

args = [1, 2, 3, 4, 5]
# args = range(1,6) would also work

def square(a):
    return a*a

result = pqdm(args, square, n_jobs=2)