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.
@Ullar-Kask were you able to get this working (by installing Jupyter into your environment or by other means)?
from cudf.
Thanks for suggestions!
@brandon-b-miller Your solution worked! Thanks a lot!
from cudf.
Related Issues (20)
- [BUG]when setting dask.config.set({"dataframe.backend": "cudf"}), ddf.explode("col1") and apply customized function cannot work correctly anymore? HOT 5
- [FEA] Add support for `cudf.unique` HOT 1
- [QST] Should cudf.Series.unique return a ndarray or cudf.Series? HOT 2
- [FEA] Align cudf Python's `ColumnBase.__init__` subclass signatures with their base class and add construction validation
- [FEA] Support three-valued (Kleene) logic in any and all aggregations
- [FEA] Support order-preserving groupby option in cudf-polars
- [FEA] Support scan-based aggregations in cudf-polars
- [FEA] Support cross-casting to/from strings in cudf-polars
- [FEA] Full coverage of stringfunction methods in cudf polars
- [FEA] Full coverage of datetime methods in cudf-polars
- [FEA] Run polars test suite in cudf-polars CI, and keep track of pass rates
- [FEA] Accelerate cupy array creation from DataFrame.values HOT 4
- [FEA] Support batch construction of strings columns HOT 1
- [FEA] Have `cudf::make_empty_column(cudf::type_id::STRING)` return a column with a child column of empty offsets HOT 3
- [PERF] looping through dataframe is 100x slower than when running without cudf HOT 3
- [BUG] cuDF and Pandas return different results for ... HOT 4
- [FEA] HOT 1
- [FEA] Adjust libcudf to not load cuFile by default
- [FEA] Add support for `cudf.DataFrame.aggregate`
- [BUG] Series.value_counts hangs with over 1B rows of input HOT 6
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.