Skip to content
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

Switch Docs to PyData Theme #500

Merged
merged 9 commits into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conda/environments/all_cuda-118_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dependencies:
- pandoc<=2.0.0
- panel>=0.14.0,<=0.14.1
- pre-commit
- pydata-sphinx-theme
- pydeck>=0.3,<=0.5.0
- pyppeteer>=0.2.6
- pyproj>=2.4,<=3.4
Expand Down
1 change: 1 addition & 0 deletions conda/environments/all_cuda-120_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ dependencies:
- pandoc<=2.0.0
- panel>=0.14.0,<=0.14.1
- pre-commit
- pydata-sphinx-theme
- pydeck>=0.3,<=0.5.0
- pyppeteer>=0.2.6
- pyproj>=2.4,<=3.4
Expand Down
1 change: 1 addition & 0 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ dependencies:
- nbsphinx
- numpydoc
- pandoc<=2.0.0 # We should check and fix all "<=" pinnings
- pydata-sphinx-theme
- recommonmark
- sphinx
- sphinx_rtd_theme
Expand Down
Binary file added docs/source/_static/rapids_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
API Reference
=============

The two main components to cuxfilter are `DataFrame` for connecting the dashboard to a cuDF backed dataframe, and `Dashboard` for setting dashboard options.

.. currentmodule:: cuxfilter.dataframe

DataFrame
Expand Down
12 changes: 0 additions & 12 deletions docs/source/charts/charts.rst

This file was deleted.

38 changes: 29 additions & 9 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright (c) 2019-2023, NVIDIA CORPORATION.
import sphinx_rtd_theme
import pydata_sphinx_theme

# -- Project information -----------------------------------------------------
project = "cuxfilter"
copyright = "2019, NVIDIA"
author = "NVIDIA"
copyright = "2018-2023, NVIDIA Corporation"
author = "NVIDIA Corporation"

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand All @@ -16,6 +16,8 @@
release = '23.08.00'

nbsphinx_allow_errors = True


# -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
Expand All @@ -37,6 +39,12 @@
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = {".rst": "restructuredtext"}

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
Expand All @@ -48,15 +56,27 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

html_theme = "pydata_sphinx_theme"
html_logo = "_static/rapids_logo.png"
html_static_path = ["_static"]

# Removes sidebar
htmlhelp_basename = "cuxfilterdoc"

html_sidebars = {
"user_guide/index": []
}

html_theme_options = {
"external_links": [],
"icon_links": [],
"github_url": "https://github.com/rapidsai/cuxfilter",
"twitter_url": "https://twitter.com/rapidsai",
"show_toc_level": 1,
"navbar_align": "right",
}


def setup(app):
app.add_css_file("https://docs.rapids.ai/assets/css/custom.css")
app.add_js_file(
"https://docs.rapids.ai/assets/js/custom.js", loading_method="defer"
)
app.add_js_file("https://docs.rapids.ai/assets/js/custom.js", loading_method="defer")
Binary file removed docs/source/examples/temp.png
Binary file not shown.
18 changes: 5 additions & 13 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
Welcome to cuxfilter's documentation!
Welcome to cuxfilter's documentation
=====================================

cuxfilter acts as a connector library, which provides the connections between different visualization libraries and a GPU dataframe without much hassle. This also allows the user to use charts from different libraries in a single dashboard, while also providing the interaction.
cuxfilter enables GPU accelerated cross-filtering dashboards from notebooks, in just a few lines of Python code. Well integrated with the HoloViz ecosystem, it also incorporates other outstanding visualization libraries. RAPIDS cuxfilter is ideal for multi-chart exploratory data analysis and dashboard prototyping within the RAPIDS ecosystem.

.. toctree::
:maxdepth: 2
:caption: Contents:


./installation.rst
./dataframe.rst
./deployment.rst
./10_minutes_to_cuxfilter.ipynb
./Dask-cudf-support.rst
./charts/charts.rst
./layouts/Layouts.ipynb
./themes/Themes.ipynb
./examples/examples.rst
user_guide/index
api_reference/dataframe


Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
Empty file removed docs/source/layouts/untitled.txt
Empty file.
Binary file removed docs/source/temp.png
Binary file not shown.
20 changes: 20 additions & 0 deletions docs/source/user_guide/charts/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Charts
======

cuxfilter is able to use a wide range of chart types:

* Bokeh: line and bar
* Datashader: high density line, stacked line, scatter, geospatial scatter, heatmap, and graph
* DeckGL: webGL based geospatial 2D and 3D choropleth
* Widgets: sliders, dropdowns, and cards
* Custom: data table

.. toctree::
:maxdepth: 1
:caption: Contents:

bokeh_charts.rst
datashader_charts.rst
deckgl_charts.rst
widgets.rst
custom_charts.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Panel Widgets
Widgets
=============

.. currentmodule:: cuxfilter.charts
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Examples
========
Example Dashboards
==================

.. toctree::
:maxdepth: 1
Expand Down
16 changes: 16 additions & 0 deletions docs/source/user_guide/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
User Guide
==========

The user guide is intended as an overview of cuxfilter's capabilities as well as a showcase for examples. The best place to start is `10 Minutes to Cuxfilter`. For more advanced topics, see `Dask-cudf-support` for multi-GPU capabilities and `deployment` for exporting a dashboard for standalone usage outside of a notebook.

.. toctree::
:maxdepth: 2

installation
10_minutes_to_cuxfilter
charts/index
layouts/Layouts
themes/Themes
examples/index
Dask-cudf-support
deployment
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ Installation

Conda
-----
For the most customized way of installing RAPIDS and cuxfilter, visit the selector on the RAPIDS `Get Started Page <https://rapids.ai/start.html#rapids-release-selector>`_.
For the most customized way of installing RAPIDS and cuxfilter, visit the selector on the RAPIDS `Install Page <https://docs.rapids.ai/install>`_.

cuxfilter conda example installation:

.. code-block:: bash

conda install -c rapidsai -c conda-forge -c nvidia \
cuxfilter=23.02 python=3.10 cudatoolkit=11.8
cuxfilter=23.6 python=3.10 cudatoolkit=11.8

Docker container
----------------
For the most customized way of installing RAPIDS and cuxfilter, visit the selector on the RAPIDS `Get Started Page <https://rapids.ai/start.html#rapids-release-selector>`_.
For the most customized way of installing RAPIDS and cuxfilter, visit the selector on the RAPIDS `Install Page <https://docs.rapids.ai/install>`_.

cuxfilter docker example installation:

Expand All @@ -30,14 +30,14 @@ cuxfilter docker example installation:
Build/Install from Source
-------------------------

See `build instructions <https://github.com/rapidsai/cuxfilter/blob/branch-23.02/CONTRIBUTING.md#setting-up-your-build-environment>`_.
See `build instructions <https://github.com/rapidsai/cuxfilter/blob/main/CONTRIBUTING.md#setting-up-your-build-environment>` on our GitHub.



Troubleshooting
---------------

1. Install jupyterlab dependencies
Install jupyterlab dependencies
**********************************

.. code-block:: bash
Expand All @@ -46,18 +46,8 @@ Troubleshooting
jupyter labextension install @pyviz/jupyterlab_pyviz
jupyter labextension install @bokeh/jupyter_bokeh

2.running the server
********************

.. code-block:: bash

#enter ip address without http://
#current port is the port at which jupyterlab is running
d.app(notebook_url='ip.addr:current_port')
# OR for a separate web app
d.show(notebook_url='ip.addr:current_port')

3. libxcomposite.so.1 not found error
libxcomposite.so.1 not found error
*************************************

If using **await d.preview()** throws a **libxcomposite.so.1 not found error**, execute the following commands:
Expand All @@ -67,13 +57,14 @@ If using **await d.preview()** throws a **libxcomposite.so.1 not found error**,
apt-get update
apt-get install libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxi6 libxrandr2 libxtst6 libcups2 libxss1 libasound2 libpangocairo-1.0-0 libpango-1.0-0 libatk1.0-0 libgtk-3-0 libgdk-pixbuf2.0-0


Download datasets
-----------------

1. Auto download datasets
1. Automatically download datasets
*************************

The notebooks inside `python/notebooks` already have a check function which verifies whether the example dataset is downloaded, and downloads it if it's not.
The notebooks inside `python/notebooks` already have a check function which verifies whether the example dataset is downloaded, and downloads if not present.

2. Download manually
********************
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.