Skip to content

Commit

Permalink
Prevent overlap of plot and downstream messages (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 authored Jul 3, 2024
1 parent 4e00dfc commit fbcb277
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lumen/ai/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, **params):
params['spec'] = yaml.safe_dump(component_spec)
super().__init__(**params)
code_editor = pn.widgets.CodeEditor(
value=self.spec, language=self.language, sizing_mode="stretch_both", min_height=300
value=self.spec, language=self.language, sizing_mode="stretch_both",
)
code_editor.link(self, bidirectional=True, value='spec')
copy_icon = pn.widgets.ButtonIcon(
Expand Down Expand Up @@ -62,7 +62,9 @@ def __init__(self, **params):
self._tabs = pn.Tabs(
("Code", code_col),
("Output", placeholder),
styles={'min-width': "100%"}, active=1
styles={'min-width': "100%"},
height=700,
active=1
)
self._tabs.link(self, bidirectional=True, active='active')
placeholder.objects = [
Expand Down

0 comments on commit fbcb277

Please sign in to comment.