holoviz-topics / examples

Visualization-focused examples using HoloViz for specific topics
https://examples.holoviz.org
Creative Commons Attribution 4.0 International
83 stars 24 forks source link

Add optional title and update nyc_buildings #251

Closed maximlt closed 12 months ago

maximlt commented 1 year ago

This PR adds the possibility to define a title for a project when the prettified project name is not satisfying, e.g. Nyc Buildings instead of the preferred NYC Buildings.

It also updates nyc_buildings as an example usage of this new functionality.

I've built the docs locally and saw a couple of annoying issues.

Not sure where this problem comes from. We could work around it by simply removing the ProgressBar but it would at least be good to identify where it's from. It might be from https://github.com/executablebooks/MyST-NB/pull/440 (that was fixing displaying HoloViews objects in mystnb 🙃 )

myst-nb                   0.17.1                   pypi_0    pypi
myst-parser               0.18.1                   pypi_0    pypi
pydata-sphinx-theme       0.9.0              pyhd8ed1ab_1    conda-forge
sphinx                    5.3.0                    pypi_0    pypi
 File ~/work/examples/examples/nyc_buildings/envs/test/lib/python3.9/site-packages/spatialpandas/io/parquet.py:350, in _perform_read_parquet_dask(paths, columns, filesystem, load_divisions, geometry, bounds, categories, storage_options, engine_kwargs)
    347 pieces = []
    348 for dataset in datasets:
    349     # Perform natural sort on pieces so that "part.10" comes after "part.2"
--> 350     dataset_pieces = sorted(dataset.fragments, key=lambda piece: natural_sort_key(piece.path))
    351     pieces.extend(dataset_pieces)
    353 delayed_partitions = [
    354     delayed(read_parquet)(
    355         piece.path,
   (...)
    361     for piece in pieces
    362 ]

AttributeError: '_ParquetDatasetV2' object has no attribute 'fragments'
maximlt commented 12 months ago

Superseded by https://github.com/holoviz-topics/examples/pull/322