from scwidgets.code import CodeInput
def foo():
return 'init'
ci = CodeInput(foo)
ci
ci.function_body = """return 'change'"""
the widget view is not updated on the change of the function_body.
Fix
Because with widget 4 the code themes names have changed, the wrong default theme default is not valid anymore and causes this bug. We need to update the default code_theme name.
Problem
when running two cells
the widget view is not updated on the change of the function_body.
Fix
Because with widget 4 the code themes names have changed, the wrong default theme
default
is not valid anymore and causes this bug. We need to update the default code_theme name.