Skip to content

Commit

Permalink
DOC: create usable env on RTD, update clustering (#601)
Browse files Browse the repository at this point in the history
* update example

* use top level osmnx import

* exectue notebooks

* cast tessellation to gdf

* fix path

* don't build notebooks but try getting a working env
  • Loading branch information
martinfleis committed Jun 14, 2024
1 parent f2eb9b4 commit 5d440a5
Show file tree
Hide file tree
Showing 15 changed files with 6,236 additions and 6,258 deletions.
36 changes: 18 additions & 18 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@

import momepy # noqa

autodoc_mock_imports = [
"geopandas",
"networkx",
"numpy",
"pandas",
"rtree",
"scipy",
"scipy.spatial",
"shapely",
"shapely.geometry",
"shapely.wkt",
"shapely.ops",
"libpysal",
"tqdm",
"mapclassify",
"osmnx",
"inequality",
]
# autodoc_mock_imports = [
# "geopandas",
# "networkx",
# "numpy",
# "pandas",
# "rtree",
# "scipy",
# "scipy.spatial",
# "shapely",
# "shapely.geometry",
# "shapely.wkt",
# "shapely.ops",
# "libpysal",
# "tqdm",
# "mapclassify",
# "osmnx",
# "inequality",
# ]

# -- Project information -----------------------------------------------------

Expand Down
43 changes: 43 additions & 0 deletions docs/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: test
channels:
- conda-forge
dependencies:
- python=3.12
- geopandas
- inequality
- libpysal>=4.11.0
- mapclassify
- networkx
- osmnx
- packaging
- pandas!=1.5.0
- shapely>=2
- esda
- tqdm
- numba
# testing
- codecov
- pytest
- pytest-cov
# user guide
- inequality
- jupyter
- matplotlib
- osmnx
- clustergram
- bokeh
- geopy
- ipywidgets
- Iprogress
- matplotlib
- numpydoc
- pydata-sphinx-theme
- nbsphinx
- myst-parser
- pip
- pip:
- sphinx_copybutton
- sphinx-gallery
- sphinxext-rediraffe
- sphinxcontrib.bibtex
- git+https://github.com/geopandas/geopandas.git
2,080 changes: 1,006 additions & 1,074 deletions docs/examples/clustering.ipynb

Large diffs are not rendered by default.

1,030 changes: 515 additions & 515 deletions docs/user_guide/combined/distribution.ipynb

Large diffs are not rendered by default.

458 changes: 229 additions & 229 deletions docs/user_guide/combined/intensity.ipynb

Large diffs are not rendered by default.

1,194 changes: 597 additions & 597 deletions docs/user_guide/elements/enclosed.ipynb

Large diffs are not rendered by default.

1,078 changes: 539 additions & 539 deletions docs/user_guide/elements/tessellation.ipynb

Large diffs are not rendered by default.

1,610 changes: 805 additions & 805 deletions docs/user_guide/getting_started.ipynb

Large diffs are not rendered by default.

558 changes: 279 additions & 279 deletions docs/user_guide/simple/dimension.ipynb

Large diffs are not rendered by default.

988 changes: 494 additions & 494 deletions docs/user_guide/simple/shape.ipynb

Large diffs are not rendered by default.

840 changes: 420 additions & 420 deletions docs/user_guide/weights/diversity.ipynb

Large diffs are not rendered by default.

1,448 changes: 724 additions & 724 deletions docs/user_guide/weights/examples.ipynb

Large diffs are not rendered by default.

412 changes: 206 additions & 206 deletions docs/user_guide/weights/two.ipynb

Large diffs are not rendered by default.

698 changes: 349 additions & 349 deletions docs/user_guide/weights/weights_nb.ipynb

Large diffs are not rendered by default.

21 changes: 12 additions & 9 deletions readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
version: 2
formats: []

sphinx:
configuration: docs/conf.py

build:
os: ubuntu-20.04
os: ubuntu-22.04
tools:
python: "3.11"
python: mambaforge-latest
jobs:
post_checkout:
# we need the tags for versioneer to work
- git fetch origin --depth 150
- git fetch --tags
post_build:
- mamba list
python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .

conda:
environment: docs/environment.yml
formats: []

0 comments on commit 5d440a5

Please sign in to comment.