Skip to content

Commit 407c574

Browse files
committed
class IPyWidgetsPreloadDisplay removed
1 parent 6c1d457 commit 407c574

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

xcube/core/store/preload.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -418,29 +418,6 @@ def log(self, message: str):
418418
self._ipy_display.display(message)
419419

420420

421-
class IPyWidgetsPreloadDisplay(IPyPreloadDisplay):
422-
def __init__(self, states: list[PreloadState]):
423-
super().__init__(states)
424-
import ipywidgets
425-
426-
self._state_table = ipywidgets.HTML(self.to_html())
427-
self._output = ipywidgets.Output() # not used yet
428-
self._container = ipywidgets.VBox([self._state_table, self._output])
429-
430-
def show(self):
431-
"""Display the widget container."""
432-
self._ipy_display.display(self._container)
433-
434-
def update(self):
435-
"""Update the display."""
436-
self._state_table.value = self.to_html()
437-
438-
def log(self, message: str):
439-
"""Log a message to the output widget."""
440-
with self._output:
441-
print(message)
442-
443-
444421
def _to_dict(obj: object):
445422
return {
446423
k: v

0 commit comments

Comments
 (0)