stac-utils / pystac

Python library for working with any SpatioTemporal Asset Catalog (STAC)
https://pystac.readthedocs.io
Other
325 stars 115 forks source link

Minimize css a bit and make it better at overriding jupyter defaults #1311

Closed jsignell closed 4 months ago

jsignell commented 4 months ago

Related Issue(s):

Description:

Kind of hard to reproduce, but even if this is a noop in many cases the reduction in size will hopefully be compelling.

For a notebook containing an executed version of the following:

search = client.search(
    max_items=10,
    collections=['sentinel-2-l2a'],
    bbox=[-72.5,40.5,-72,41]
)
search.item_collection()

image

The saved size on this branch is 4.4M as opposed to 5.4M on main

PR Checklist:

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (679eaff) 91.18% compared to head (605cc45) 91.18%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1311 +/- ## ======================================= Coverage 91.18% 91.18% ======================================= Files 51 51 Lines 7023 7023 Branches 1005 1005 ======================================= Hits 6404 6404 Misses 444 444 Partials 175 175 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

jsignell commented 4 months ago

I just confirmed that this resolves this issue in the jupyterhub where I originally encountered it:

image