From 1484f9cb2c8db907b45e6884f9c380c719db01e2 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Thu, 1 Feb 2024 14:57:17 +0100 Subject: [PATCH] Fix views UI --- lumen/ui/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lumen/ui/views.py b/lumen/ui/views.py index a32f40d1..1e38e8e6 100644 --- a/lumen/ui/views.py +++ b/lumen/ui/views.py @@ -310,6 +310,7 @@ def render(self): pipeline = lm_state.pipelines[kwargs.pop('pipeline', self.pipeline)] if 'sizing_mode' not in kwargs: kwargs['sizing_mode'] = 'stretch_width' + kwargs.pop('type', None) self.tabulator = pn.widgets.Tabulator( pipeline.data, pagination='remote', page_size=12, height=400, **kwargs ) @@ -344,6 +345,7 @@ def __init__(self, **params): def render(self): kwargs = dict(self.spec) + kwargs.pop('type', None) pipeline = lm_state.pipelines[kwargs.pop('pipeline', self.pipeline)] self.view = pn.pane.Perspective(pipeline, **dict(self._defaults, **kwargs)) self.view.param.watch(self._update_spec, list(self.view.param))