I am able to execute Python scripts inside R Markdown. However, when it comes to the widgets portions to display those UI elements, those cannot be displayed. It outputs as below:
HTML(value="<h2 style='color:DarkBlue';>Parameters for data cleaning and model selection</h2>")
DatePicker(value=None, description='From Date')
DatePicker(value=None, description='To Date')
HBox(children=(VBox(children=(FloatText(value=0.09, description='dist_ex_min'), FloatText(value=3.0, description='dist_ex_max'))), VBox(children=(FloatText(value=2.0, description='dist_cal_max'),)), VBox(children=(FloatText(value=95.0, description='grade_min'),))))
VBox(children=(HTML(value="<h4 style='color:DarkBlue';>Model</h4>"), GridspecLayout(children=(Label(value='Cal0', layout=Layout(grid_area='widget001')), Label(value='Cal1', layout=Layout(grid_area='widget002')), Label(value='Cal2', layout=Layout(grid_area='widget003')), Label(value='Cal3', layout=Layout(grid_area='widget004')), Label(value='Ex1', layout=Layout(grid_area='widget005')), Label(value='Ex2', layout=Layout(grid_area='widget006')), Label(value='Ex3', layout=Layout(grid_area='widget007')), Label(value='Ex4', layout=Layout(grid_area='widget008')), Checkbox(value=True, indent=False, layout=Layout(grid_area='widget009', width='10%')), Checkbox(value=True, indent=False, layout=Layout(grid_area='widget010', width='10%')), Checkbox(value=True, indent=False, layout=Layout(grid_area='widget011', width='10%')), Checkbox(value=True, indent=False, layout=Layout(grid_area='widget012', width='10%')), Checkbox(value=True, indent=False, layout=Layout(grid_area='widget013', width='10%')), Checkbox(value=True, indent=False, layout=Layout(grid_area='widget014', width='10%')), Checkbox(value=True, indent=False, layout=Layout(grid_area='widget015', width='10%')), Checkbox(value=True, indent=False, layout=Layout(grid_area='widget016', width='10%')), Checkbox(value=True, indent=False, layout=Layout(grid_area='widget017', width='10%')), Checkbox(value=True, indent=False, layout=Layout(grid_area='widget018', width='10%')), Checkbox(value=True, indent=False, layout=Layout(grid_area='widget019', width='10%')), Checkbox(value=True, indent=False, layout=Layout(grid_area='widget020', width='10%')), Checkbox(value=True, indent=False, layout=Layout(grid_area='widget021', width='10%')), Checkbox(value=True, indent=False, layout=Layout(grid_area='widget022', width='10%')), Checkbox(value=True, indent=False, layout=Layout(grid_area='widget023', width='10%')), Checkbox(value=True, indent=False, layout=Layout(grid_area='widget024', width='10%'))), layout=Layout(align_items='center', grid_template_areas='". widget001 widget002 widget003 widget004"\n"widget005 widget009 widget010 widget011 widget012"\n"widget006 widget013 widget014 widget015 widget016"\n"widget007 widget017 widget018 widget019 widget020"\n"widget008 widget021 widget022 widget023 widget024"', grid_template_columns='repeat(5, 1fr)', grid_template_rows='repeat(5, 1fr)', width='50%'))))
HTML(value="<h4 style='color:DarkBlue';>Select Section</h4>")
interactive(children=(Dropdown(description='Section', index=4, options=('1234', '5678'), Output()), _dom_classes=('widget-interact',))
HBox(children=(Button(description='Clean Raw Data', style=ButtonStyle()), Button(description='Train Model', disabled=True, style=ButtonStyle())))
HBox(children=(Output(), Output()))
Button(description='Save Model', disabled=True, style=ButtonStyle()) Output()
Any help or suggestion is greatly appreciated.