Skip to content

Commit

Permalink
Remove the examples folder (#1287)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt authored Feb 25, 2024
1 parent 6be9cac commit f17f470
Show file tree
Hide file tree
Showing 82 changed files with 802 additions and 433 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,18 @@ jobs:
run: |
conda activate test-environment
bokeh sampledata
- name: generate rst
- name: install dev nbsite
run: |
conda activate test-environment
nbsite generate-rst --org holoviz --project-name hvplot
pip install --pre -U nbsite
- name: conda list
run: |
conda activate test-environment
conda list
- name: build docs
run: |
conda activate test-environment
nbsite build --what=html --output=builtdocs --org holoviz --project-name hvplot
sphinx-build -b html doc builtdocs
- name: report failure
if: failure()
run: cat /tmp/sphinx-*.log | tail -n 100
Expand All @@ -72,6 +76,7 @@ jobs:
external_repository: holoviz-dev/hvplot
publish_dir: ./builtdocs
force_orphan: true
exclude_assets: '.doctrees'
- name: Deploy main
if: |
(github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'main') ||
Expand All @@ -82,6 +87,7 @@ jobs:
publish_dir: ./builtdocs
cname: hvplot.holoviz.org
force_orphan: true
exclude_assets: '.doctrees'
pip_build_docs:
name: Documentation:pip
runs-on: 'ubuntu-latest'
Expand All @@ -103,6 +109,8 @@ jobs:
python-version: '3.11'
- name: install
run: pip install ."[doc, examples, geo]"
- name: install dev nbsite
run: pip install --pre -U nbsite
- name: pip list
run: pip list
- name: Set and echo git ref
Expand All @@ -111,17 +119,9 @@ jobs:
echo "Deploying from ref ${GITHUB_REF#refs/*/}"
echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: bokeh sampledata
run: |
conda activate test-environment
bokeh sampledata
- name: generate rst
run: |
conda activate test-environment
nbsite generate-rst --org holoviz --project-name hvplot
run: bokeh sampledata
- name: build docs
run: |
conda activate test-environment
nbsite build --what=html --output=builtdocs --org holoviz --project-name hvplot
run: sphinx-build -b html doc builtdocs
- name: report failure
if: failure()
run: cat /tmp/sphinx-*.log | tail -n 100
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ hvplot/.version
.DS_Store

# Examples artefacts
examples/user_guide/plot.html
doc/user_guide/plot.html
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ include README.rst
include LICENSE
include hvplot/.version
include hvplot/tests/test_data/*.tif
graft examples
graft hvplot/examples
include hvplot/datasets.yaml
include hvplot/data/crime.csv
global-exclude *.py[co]
global-exclude *~
global-exclude *.ipynb_checkpoints/*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| Latest release | [![Github release](https://img.shields.io/github/release/holoviz/hvplot.svg?label=tag&colorB=11ccbb)](https://github.com/holoviz/hvplot/releases) [![PyPI version](https://img.shields.io/pypi/v/hvplot.svg?colorB=cc77dd)](https://pypi.python.org/pypi/hvplot) [![hvplot version](https://img.shields.io/conda/v/pyviz/hvplot.svg?colorB=4488ff&style=flat)](https://anaconda.org/pyviz/hvplot) [![conda-forge version](https://img.shields.io/conda/v/conda-forge/hvplot.svg?label=conda%7Cconda-forge&colorB=4488ff)](https://anaconda.org/conda-forge/hvplot) [![defaults version](https://img.shields.io/conda/v/anaconda/hvplot.svg?label=conda%7Cdefaults&style=flat&colorB=4488ff)](https://anaconda.org/anaconda/hvplot) |
| Python | [![Python support](https://img.shields.io/pypi/pyversions/hvplot.svg)](https://pypi.org/project/hvplot/) |
| Docs | [![gh-pages](https://img.shields.io/github/last-commit/holoviz/hvplot/gh-pages.svg)](https://github.com/holoviz/hvplot/tree/gh-pages) [![site](https://img.shields.io/website-up-down-green-red/http/hvplot.holoviz.org.svg)](https://hvplot.holoviz.org) |
| Binder | [![Binder](https://img.shields.io/badge/launch%20v0.8.1-binder-579aca.svg?logo=data:image/png;base64,iVBORw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0zp+tcMhwRpBeLyqtIjlJKAIZSbI8SGSF3k0pA3mR5tHuwPFoa7N7reoq2bqCsAk1HqCu5uvI1n6JuRXI+S1Mco54YmYTwcn6Aeic+kssXi8XpXC4V3t7/ADuTNKaQJdScAAAAAElFTkSuQmCC)](https://mybinder.org/v2/gh/holoviz/hvplot/v0.8.1?urlpath=lab/tree/examples) |
| Binder | [![Binder](https://img.shields.io/badge/launch%20v0.8.1-binder-579aca.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFkAAABZCAMAAABi1XidAAAB8lBMVEX///9XmsrmZYH1olJXmsr1olJXmsrmZYH1olJXmsr1olJXmsrmZYH1olL1olJXmsr1olJXmsrmZYH1olL1olJXmsrmZYH1olJXmsr1olL1olJXmsrmZYH1olL1olJXmsrmZYH1olL1olL0nFf1olJXmsrmZYH1olJXmsq8dZb1olJXmsrmZYH1olJXmspXmspXmsr1olL1olJXmsrmZYH1olJXmsr1olL1olJXmsrmZYH1olL1olLeaIVXmsrmZYH1olL1olL1olJXmsrmZYH1olLna31Xmsr1olJXmsr1olJXmsrmZYH1olLqoVr1olJXmsr1olJXmsrmZYH1olL1olKkfaPobXvviGabgadXmsqThKuofKHmZ4Dobnr1olJXmsr1olJXmspXmsr1olJXmsrfZ4TuhWn1olL1olJXmsqBi7X1olJXmspZmslbmMhbmsdemsVfl8ZgmsNim8Jpk8F0m7R4m7F5nLB6jbh7jbiDirOEibOGnKaMhq+PnaCVg6qWg6qegKaff6WhnpKofKGtnomxeZy3noG6dZi+n3vCcpPDcpPGn3bLb4/Mb47UbIrVa4rYoGjdaIbeaIXhoWHmZYHobXvpcHjqdHXreHLroVrsfG/uhGnuh2bwj2Hxk17yl1vzmljzm1j0nlX1olL3AJXWAAAAbXRSTlMAEBAQHx8gICAuLjAwMDw9PUBAQEpQUFBXV1hgYGBkcHBwcXl8gICAgoiIkJCQlJicnJ2goKCmqK+wsLC4usDAwMjP0NDQ1NbW3Nzg4ODi5+3v8PDw8/T09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E7Ug0uFOzufJFE2PxBo/YAx8XPPdDwWN0MrDRYIZF0mSMKCNHgaIVFoBbNoLJ7tEQDKxGF0kcLQimojCZopv0OkNOyWCCg9XMVAi7ARJzQdM2QUh0gmBozjc3Skg6dSBRqDGYSUOu66Zg+I2fNZs/M3/f/Grl/XnyF1Gw3VKCez0PN5IUfFLqvgUN4C0qNqYs5YhPL+aVZYDE4IpUk57oSFnJm4FyCqqOE0jhY2SMyLFoo56zyo6becOS5UVDdj7Vih0zp+tcMhwRpBeLyqtIjlJKAIZSbI8SGSF3k0pA3mR5tHuwPFoa7N7reoq2bqCsAk1HqCu5uvI1n6JuRXI+S1Mco54YmYTwcn6Aeic+kssXi8XpXC4V3t7/ADuTNKaQJdScAAAAAElFTkSuQmCC)](https://mybinder.org/v2/gh/holoviz/hvplot/v0.8.1?urlpath=lab/tree) |
| Support | [![Discourse](https://img.shields.io/discourse/status?server=https%3A%2F%2Fdiscourse.holoviz.org)](https://discourse.holoviz.org/c/hvplot/8) |

[Home](https://hvplot.holoviz.org/) | [Installation instructions](#installation-instructions) | [Getting Started Guide](https://hvplot.holoviz.org/getting_started/index.html) | [Reference Guides](https://hvplot.holoviz.org/reference/index.html) | [Examples](#examples) | [License](#license) | [Support](#support--feedback)
Expand Down
9 changes: 9 additions & 0 deletions doc/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# About

hvPlot is completely open source, available under a BSD license freely for both commercial and non-commercial use. hvPlot was originally developed with the support of [Anaconda Inc.](https://anaconda.com), and is now maintained by Anaconda developers and community contributors.

hvPlot is part of the [HoloViz](https://holoviz.org) family of tools. The [holoviz.org](https://holoviz.org) website shows how to use hvPlot together with other libraries to solve complex problems, with detailed tutorials and examples. You can see a variety of projects using hvPlot at [examples.holoviz.org](https://examples.holoviz.org), and you can compare hvPlot to other available tools at [pyviz.org](https://pyviz.org).

If you have any questions or usage issues visit the [hvPlot Discourse site](https://discourse.holoviz.org/c/hvplot). If you are interested in contributing to hvPlot development to help address some of the [open issues](https://github.com/holoviz/hvplot/issues), see our [developer instructions](https://hvplot.holoviz.org/developer_guide/index.html) to set up your development environment.

If you like hvPlot and have built something you want to share, tweet a link or screenshot of your latest creation at @HoloViews, along with any other library you used (@HoloViz_org, @Datashader, @BokehPlots, @Matplotlib, etc.). Thanks!
10 changes: 0 additions & 10 deletions doc/about.rst

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
9 changes: 8 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
version = release = base_version(hvplot.__version__)
nbbuild_cell_timeout = 600

# mystnb
nb_execution_excludepatterns = [
'user_guide/Streaming.ipynb',
]

exclude_patterns = ['governance']

html_static_path += ['_static']
Expand Down Expand Up @@ -65,6 +70,7 @@
nbsite_gallery_conf = {
'github_org': 'holoviz',
'github_project': 'hvplot',
'examples_dir': '.',
'galleries': {
'reference': {
'title': 'Reference Gallery',
Expand All @@ -74,7 +80,8 @@
'tabular',
'geopandas',
'xarray',
]
],
'skip_rst_notebook_directive': True,
}
},
'thumbnail_url': 'https://assets.holoviz.org/hvplot/thumbnails',
Expand Down
12 changes: 12 additions & 0 deletions examples/conftest.py → doc/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from bokeh.io.webdriver import webdriver_control

collect_ignore_glob = []

try:
Expand All @@ -22,3 +24,13 @@
"user_guide/Geographic_Data.ipynb",
"user_guide/Integrations.ipynb",
]

try:
webdriver_control.create()
except RuntimeError:
# hvplot.save() with bokeh
collect_ignore_glob += [
"user_guide/Viewing.ipynb",
]
finally:
webdriver_control.cleanup()
141 changes: 141 additions & 0 deletions doc/developer_guide/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
(devguide-setup)=

# Getting Set Up

The hvPlot library is a complex project which provides a wide range
of data interfaces and an extensible set of plotting backends, which
means the development and testing process involves a wide set of
libraries.

```{contents}
:depth: 2
:local: true
```

% dev_guide_preliminaries:

## Preliminaries

### Git

The hvPlot source code is stored in a [Git] source control repository.
The first step to working on hvPlot is to install Git on to your system.
There are different ways to do this depending on whether, you are using
Windows, OSX, or Linux.

To install Git on any platform, refer to the [Installing Git] section of
the [Pro Git Book].

### Conda

Developing hvPlot requires a wide range of packages that are not
easily and quickly available using pip. To make this more manageable,
core developers rely heavily on the [conda package manager] for the
free [Anaconda] Python distribution. However, `conda` can also
install non-Python package dependencies, which helps streamline hvPlot
development greatly. It is *strongly* recommended that anyone
developing hvPlot also use `conda`, and the remainder of the
instructions will assume that `conda` is available.

To install Conda on any platform, see the [Download conda] section of the
[conda documentation].

## Cloning the Repository

The source code for the hvPlot project is hosted on [GitHub]. To clone the
source repository, issue the following command:

```sh
git clone https://github.com/holoviz/hvplot.git
```

This will create a `hvplot` directory at your file system
location. This `hvplot` directory is referred to as the *source
checkout* for the remainder of this document.

(dev-guide-installing-dependencies)=

## Installing Dependencies

hvPlot requires many additional packages for development and
testing.

### Conda Environments

Create an empty conda environment with the name that you prefer, here we've
chosen hvplot_dev. Activate and configure its channels to only use
`pyviz/label/dev` and `conda-forge`. The former is used to install the
development versions of the other HoloViz packages, such as HoloViews or Panel.

```sh
conda create -n hvplot_dev
conda activate hvplot_dev
conda config --env --append channels pyviz/label/dev --append channels conda-forge
conda config --env --remove channels defaults
```

Since hvPlot interfaces with a large range of different libraries the
full test suite requires a wide range of dependencies. To make it
easier to install and run different parts of the test suite across
different platforms hvPlot uses a library called `pyctdev` to make things
more consistent and general. Specify also the desired Python version you want
to base your environment on.

You will need to pick a Python version. The best practice is to choose the minimum version
currently supported by hvPlot on the main development branch. If you cannot get the minimum
version installed, then try with a more recent version of Python.

```sh
conda install python=3.x pyctdev
```

Finally to install the dependencies required to run the full unit test
suite and all the examples:

```sh
doit develop_install -o examples_tests -o tests -o examples_conda
```

Add `-o doc` if you want to install the dependencies required to build
the website.

### Setting up pre-commit

hvPlot uses `pre-commit` to automatically apply linting to hvPlot code.
If you intend to contribute to hvPlot we recommend you enable it with:

```sh
pre-commit install
```

This will ensure that every time you make a commit linting will automatically be applied.

(devguide-python-setup)=

## Commands

You can list the available `doit` commands with `doit list`.

## Next Steps

If you have any problems with the steps here, please [contact the developers].

```{toctree}
:hidden: true
:maxdepth: 2
:titlesonly: true
Getting Set up <self>
Testing <testing>
```

[anaconda]: https://anaconda.com/downloads
[conda documentation]: https://conda.io/docs/index.html
[conda package manager]: https://conda.io/docs/intro.html
[contact the developers]: https://gitter.im/pyviz/pyviz
[doit]: https://pydoit.org/
[download conda]: https://conda.io/docs/download.html
[git]: https://git-scm.com
[github]: https://github.com
[installing git]: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
[pro git book]: https://git-scm.com/book/en/v2
Loading

0 comments on commit f17f470

Please sign in to comment.