Skip to content

Commit

Permalink
Use pn.widgets.CodeEditor in place of pn.widgets.Ace (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
droumis authored Jul 3, 2024
1 parent fbcb277 commit 8f17bcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lumen/ui/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lumen/ui/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 8f17bcc

Please sign in to comment.