packages = [ "bokeh", "numpy", "panel==0.14.1" ] import panel as pn slider = pn.widgets.FloatSlider(start=0, end=10, name='Amplitude') def callback(new): return f'Amplitude is: {new}' pn.Row(slider, pn.bind(callback, slider)).servable(target='simple_app');
View Code

index.html

          
            <py-config>
              packages = [
                "bokeh",
                "numpy",
                "panel==0.13.1"
              ]
            </py-config>
            <py-script>
                import panel as pn

                slider = pn.widgets.FloatSlider(start=0, end=10, name='Amplitude')

                def callback(new):
                    return f'Amplitude is: {new}'

                pn.Row(slider, pn.bind(callback, slider)).servable(target='simple_app');
            </py-script>