Comments (6)
Thanks for the question. Can you print sys.executable
and sys.path
and make sure your notebook is using the right environment? Sometimes notebooks use a different kernel than the environment you would expect when launching. Also please share how you installed cudf (conda? pip?) and version/platform information.
from cudf.
I am running Ubuntu 20.04.6 LTS
cudf is installed by:
conda create -n rapids-24.04 -c rapidsai -c conda-forge -c nvidia rapids=24.04 python=3.10 cuda-version=11.8
From command line:
(rapids-24.04) $ python
>>> print(f'sys.executable={sys.executable}')
sys.executable=/home/recsys-api/mnt/miniconda3/envs/rapids-24.04/bin/python3
>>> print(f'sys.path={sys.path}')
sys.path=['', '/home/recsys-api/mnt/miniconda3/envs/rapids-24.04/lib/python310.zip', '/home/recsys-api/mnt/miniconda3/envs/rapids-24.04/lib/python3.10', '/home/recsys-api/mnt/miniconda3/envs/rapids-24.04/lib/python3.10/lib-dynload', '/home/recsys-api/.local/lib/python3.10/site-packages', '/home/recsys-api/mnt/miniconda3/envs/rapids-24.04/lib/python3.10/site-packages']
Jupyter server is started in rapids-24.04
, in the notebook:
sys.executable=/usr/bin/python3
sys.path=['/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '', '/home/recsys-api/.local/lib/python3.10/site-packages', '/usr/local/lib/python3.10/dist-packages', '/usr/lib/python3/dist-packages']
Jupyterlab version is 4.1.8
Thanks!
from cudf.
Hi @Ullar-Kask ,
It seems like you might have some environment issues stemming from the cuDF installation and your jupyter notebook server not being co-located. One thing that might help if you want to use a jupyter notebook with cuDF is to try creating the rapids conda environment with the notebook package included from the start. This is your installation command with notebook
appended to the end:
conda create -n rapids-24.04 -c rapidsai -c conda-forge -c nvidia rapids=24.04 python=3.10 cuda-version=11.8 notebook
This should avoid having to separately install notebook which I could see maybe leading to issues like what you're seeing. With this command I'm able to start a notebook from within the rapids-24.04
environment and import cudf
successfully. Can you try it this way and see if that works for you?
from cudf.
sys.executable=/usr/bin/python3
indicates that your Jupyter kernel is not using the RAPIDS conda environment you created.
You might need something like this? https://stackoverflow.com/questions/39604271/conda-environments-not-showing-up-in-jupyter-notebook
I think that installing jupyter into the RAPIDS conda environment and using that may work as well.
from cudf.
Related Issues (20)
- For the overload of replace in libcudf where input/target/repl are columns, there isn't a maxrepl arg. HOT 6
- [MNT] add tests for ListMethods? HOT 2
- [BUG] `cudf::round` with `HALF_UP` mode produces non-deterministic output
- [FEA] Add developer/private cudf.pandas API to check for proxy objects HOT 5
- [QST] Unable to install the cuDF in python 3.10 HOT 1
- [BUG] Converting from floating point types to fixed point types does not consider `NaN` and `inf`
- [BUG] Converting from numeric types to fixed point types does not handle underflow/overflow HOT 5
- [FEA] Refactoring JSON reader tree algorithms in 24.08 HOT 2
- [BUG] The dtype is changed unexpectly for `cudf.pandas` DataFrame. HOT 6
- [FEA] Replace internal usage of std::string with std::string_view HOT 2
- [DOC] add cudf to database-like ops benchmark? HOT 1
- [BUG] Integer overflow errors in JSON reader when total source size exceeds `INT_MAX` bytes
- [FEA] Develop new approach for handling remote I/O HOT 2
- [FEA] Support large strings in `to_pandas`
- [FEA] Support read_fwf functionality in cudf HOT 3
- cudf can't detect my GPU: cudf.numba.cuda.cudadrv.driver.CudaAPIError: [500] Call to cuInit results in CUDA_ERROR_NOT_FOUND HOT 3
- [BUG] The `ndarray` wrapper in `cudf.pandas` doesn't have `__array_interface__`.
- [FEA]: Finish documentation for pylibcudf
- [FEA] Add a column with filenames index in cudf.read_json HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cudf.