Skip to content

Commit

Permalink
Merge branch 'branch-24.10' into my_new_branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Sep 19, 2024
2 parents d24ecf0 + cd699b8 commit 47ac436
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
# Explicitly specify the pyproject.toml at the repo root, not per-project.
args: ["--config", "pyproject.toml"]
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.1.1
hooks:
- id: flake8
args: ["--config=.flake8"]
Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ Troubleshooting help can be found [on our troubleshooting page](https://docs.rap
- bokeh
- pyproj
- geopandas
- pyppeteer
- jupyter-server-proxy

## Quick Start
Expand All @@ -146,38 +145,39 @@ Please see the [Demo Docker Repository](https://hub.docker.com/r/rapidsai/rapids
### CUDA/GPU requirements

- CUDA 11.2+
- NVIDIA driver 450.80.02+
- Pascal architecture or better (Compute Capability >=6.0)
- Volta architecture or newer (Compute Capability >=7.0)

### Conda

cuxfilter can be installed with conda ([miniconda](https://conda.io/miniconda.html), or the full [Anaconda distribution](https://www.anaconda.com/download)) from the `rapidsai` channel:
cuxfilter can be installed with conda. You can get a minimal conda installation with [miniforge](https://github.com/conda-forge/miniforge).

For nightly version `cuxfilter version == 24.10` :
For the nightly version of `cuxfilter`:

```bash
# for CUDA 12.0
# for CUDA 12.5
conda install -c rapidsai-nightly -c conda-forge -c nvidia \
cuxfilter=24.10 python=3.11 cuda-version=12.0
cuxfilter=24.10 python=3.12 cuda-version=12.5

# for CUDA 11.8
conda install -c rapidsai-nightly -c conda-forge -c nvidia \
cuxfilter=24.10 python=3.11 cuda-version=11.8
cuxfilter=24.10 python=3.12 cuda-version=11.8
```

For the stable version of `cuxfilter` :
For the stable version of `cuxfilter`:

```bash
# for CUDA 12.0
# for CUDA 12.5
conda install -c rapidsai -c conda-forge -c nvidia \
cuxfilter python=3.11 cuda-version=12.0
cuxfilter python=3.12 cuda-version=12.5

# for CUDA 11.8
conda install -c rapidsai -c conda-forge -c nvidia \
cuxfilter python=3.11 cuda-version=11.8
cuxfilter python=3.12 cuda-version=11.8
```

Note: cuxfilter is supported only on Linux, and with Python versions 3.10 and 3.11.
Note: cuxfilter is supported only on Linux, and with Python versions 3.10, 3.11, and 3.12.

> Above are sample install snippets for cuxfilter, see the [Get RAPIDS version picker](https://rapids.ai/start.html) for installing the latest `cuxfilter` version.
### PyPI

Expand Down
3 changes: 2 additions & 1 deletion conda/environments/all_cuda-118_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ channels:
- nvidia
dependencies:
- bokeh>=3.1
- bokeh_sampledata
- cuda-version=11.8
- cudatoolkit
- cudf==24.10.*,>=0.0.0a0
Expand Down Expand Up @@ -38,7 +39,7 @@ dependencies:
- pytest
- pytest-cov
- pytest-xdist
- python>=3.10,<3.12
- python>=3.10,<3.13
- rapids-build-backend>=0.3.0,<0.4.0.dev0
- recommonmark
- setuptools
Expand Down
3 changes: 2 additions & 1 deletion conda/environments/all_cuda-125_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ channels:
- nvidia
dependencies:
- bokeh>=3.1
- bokeh_sampledata
- cuda-version=12.5
- cudf==24.10.*,>=0.0.0a0
- cugraph==24.10.*,>=0.0.0a0
Expand Down Expand Up @@ -37,7 +38,7 @@ dependencies:
- pytest
- pytest-cov
- pytest-xdist
- python>=3.10,<3.12
- python>=3.10,<3.13
- rapids-build-backend>=0.3.0,<0.4.0.dev0
- recommonmark
- setuptools
Expand Down
1 change: 0 additions & 1 deletion conda/recipes/cuxfilter/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ requirements:
- numpy >=1.23,<3.0a0
- packaging
- panel >=1.0
- pyppeteer >=0.2.6
- python
- {{ pin_compatible('cuda-version', max_pin='x', min_pin='x') }}

Expand Down
10 changes: 8 additions & 2 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ dependencies:
common:
- output_types: [conda, requirements]
packages:
- bokeh_sampledata
- ipykernel
- ipython
- jupyter_sphinx
Expand All @@ -153,6 +154,7 @@ dependencies:
common:
- output_types: [conda, requirements]
packages:
- bokeh_sampledata
- ipython
- notebook>=0.5.0
- output_types: [conda]
Expand All @@ -172,8 +174,12 @@ dependencies:
packages:
- python=3.11
- matrix:
py: "3.12"
packages:
- python>=3.10,<3.12
- python=3.12
- matrix:
packages:
- python>=3.10,<3.13
rapids_build_setuptools:
common:
- output_types: [conda, requirements, pyproject]
Expand Down Expand Up @@ -267,6 +273,6 @@ dependencies:
- *cuspatial_unsuffixed
- *dask_cudf_unsuffixed
- cuxfilter==24.10.*,>=0.0.0a0
- python>=3.10,<3.12
- python>=3.10,<3.13
- pytest-benchmark
- pytest-xdist
13 changes: 3 additions & 10 deletions notebooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,14 @@ These are example notebooks to showcase cuxfilter with [cuDF](https://github.com

Once you have registered with your email address, simply sign in to your account, start a CPU or GPU runtime, and open your project - all in your browser.

To setup a rapids environment in studio lab(you only need to do this the first time, since studio lab has 15GB of persistent storage across sessions), open a new terminal:
To setup a RAPIDS environment in studio lab (you only need to do this the first time, since studio lab has 15GB of persistent storage across sessions),
open a new terminal and run the following

```bash
conda install ipykernel

# for stable rapids version
conda install -c rapidsai -c numba -c conda-forge -c nvidia \
cuxfilter=23.02 python=3.11 cudatoolkit=11.8

# for nightly rapids version
conda install -c rapidsai-nightly -c numba -c conda-forge -c nvidia \
cuxfilter python=3.11 cudatoolkit=11.8
```

> Above are sample install snippets for cuxfilter, see the [Get RAPIDS version picker](https://rapids.ai/start.html) for installing the latest `cuxfilter` version.
Then install `cuxfilter` and its dependencies by following the instructions in ["Installation"](../README.md#installation) in the project's main README.

Once installed, you should see a card in the launcher for that environment and kernel after about a minute.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def name(self):
chart_type = self.chart_type if self.chart_type else "chart"
return (
f"{self.x}_{self.y}"
f"{'_'+self.aggregate_col if self.aggregate_col else ''}"
f"{'_'+self.aggregate_fn if self.aggregate_fn else ''}"
f"{'_' + self.aggregate_col if self.aggregate_col else ''}"
f"{'_' + self.aggregate_fn if self.aggregate_fn else ''}"
f"_{chart_type}_{self.title}"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class BaseStackedLine(BaseChart):
y_range: Tuple = None
use_data_tiles = False
y: list = []
colors: list = []
default_colors = ["#8735fb"]
box_selected_range = None

Expand Down
2 changes: 1 addition & 1 deletion python/cuxfilter/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def _generate_query_str(self, query_dict=None, ignore_chart=""):

# extract string queries from query_dict,
# as self.query_dict also contains cudf.Series indices
str_queries_list = [x for x in query_dict.values() if type(x) == str]
str_queries_list = [x for x in query_dict.values() if type(x) is str]
return_query_str = " and ".join(str_queries_list)

# adding the popped value to the query_str_dict again
Expand Down
1 change: 1 addition & 0 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

[project.optional-dependencies]
Expand Down

0 comments on commit 47ac436

Please sign in to comment.