Skip to content

Commit 70c5b05

Browse files
committed
title added to preload table
1 parent d96967e commit 70c5b05

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
* Renamed [xrlint]() config file from `xrlint_config.yaml` to `xrlint-config.yaml`.
2121

22+
* The title "Preload Datasets" has been added to the preload visualization table
23+
2224
## Changes in 1.8.3
2325

2426
### Enhancements

xcube/core/store/preload.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,9 @@ def __exit__(self, exc_type, exc_val, exc_tb):
323323
self.close()
324324

325325

326+
_TITLE = "Preload Datasets"
327+
328+
326329
class PreloadDisplay(ABC):
327330
@classmethod
328331
def create(
@@ -348,10 +351,11 @@ def _repr_html_(self) -> str:
348351
return self.to_html()
349352

350353
def to_text(self) -> str:
351-
return self.tabulate(table_format="simple")
354+
return f"{_TITLE}\n" + self.tabulate(table_format="simple")
352355

353356
def to_html(self) -> str:
354-
return self.tabulate(table_format="html")
357+
title = f"<b style='font-size: 20px;'>{_TITLE}</b>"
358+
return title + self.tabulate(table_format="html")
355359

356360
def tabulate(self, table_format: str = "simple") -> str:
357361
"""Generate HTML table from job list."""

0 commit comments

Comments
 (0)