diff --git a/lumen/ui/dashboard.py b/lumen/ui/dashboard.py index c69ae3011..dd0e643ce 100644 --- a/lumen/ui/dashboard.py +++ b/lumen/ui/dashboard.py @@ -68,9 +68,9 @@ class DashboardGallery(WizardItem, Gallery): def __init__(self, **params): super().__init__(**params) - self.editor = pn.widgets.Ace( + self.editor = pn.widgets.CodeEditor( language='yml', sizing_mode='stretch_both', theme='dracula', - margin=(0, 20), height=400 + margin=(0, 20), min_height=400 ) self.upload = pn.widgets.FileInput( sizing_mode='stretch_width', margin=(0, 20), height=50 diff --git a/lumen/ui/sources.py b/lumen/ui/sources.py index e8428389e..bf78b221b 100644 --- a/lumen/ui/sources.py +++ b/lumen/ui/sources.py @@ -293,7 +293,7 @@ class IntakeSourceEditor(SourceEditor): def __init__(self, **params): import lumen.sources.intake # noqa params.pop('source_type', None) - self.editor = pn.widgets.Ace(language='yaml', theme='dracula', margin=0, sizing_mode='stretch_width') + self.editor = pn.widgets.CodeEditor(language='yaml', theme='dracula', margin=0, sizing_mode='stretch_width') self.upload = pn.widgets.FileInput(sizing_mode='stretch_width', margin=0) super().__init__(**params)