New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import numba and cupy to a notebook #12102
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
It looks your environments are messed up.
|
many thanks Fcollonval |
Hi fcollonval
Then I import CuPy to python, it works well. |
If the attached file is the list of package in the useful environment (that is different from the one in which you installed JupyterLab), I'm surprised you could select it as it does not have any kernel installed. You should install |
I can import them from python (see folloing), but cannot import them from Jupyter Lab
In Windows PS: I have
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS P:\Conda_FastBfft_project> python
Python 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
$ import numba
$ numba.version
'0.54.1'
in Jupyer Lab
ModuleNotFoundError Traceback (most recent call last)
Input In [1], in
----> 1 import numba
2 from numba import cuda as numba_cuba
3 from pyculib.fft import fft, ifft
ModuleNotFoundError: No module named 'numba'
on Anaconda Prompt (anaconda3) - jupyter lab
it displays:
[IPKernelApp] ERROR | Error in message handler
Traceback (most recent call last):
File "C:\Users\Chen\AppData\Local\Programs\Python\Python310\lib\site-packages\ipykernel\kernelbase.py", line 461, in dispatch_queue
await self.process_one()
File "C:\Users\Chen\AppData\Local\Programs\Python\Python310\lib\site-packages\ipykernel\kernelbase.py", line 450, in process_one
await dispatch(*args)
TypeError: object NoneType can't be used in 'await' expression
The text was updated successfully, but these errors were encountered: