Jupyter notebook (Python 3.6): ImportError: cannot import name 'prange'

883 views Asked by At

I am using numba to speedup my code. It runs fine in the terminal. But when I try to run it inside jupyter notebook, it gives error for import numba prange. I am using Numba 0.38.1. When I try import prange from the temrinal of jupyter, the import works fine.

Can someone please guide me what could be the issue. Thanks

From the terminal created from Jupyter

From the notebook

1

There are 1 answers

1
manuignatius On

Can you try the import and operation in different cells?

It worked for me. See here