Module Import alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias alias Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword TupleLoad Num Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Num keyword Num Assign NameStore Call NameLoad keyword Call NameLoad keyword NameLoad keyword Str Assign NameStore Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Str keyword NameLoad keyword Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Str keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Str keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Str keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad Str keyword Str Expr Call NameLoad NameLoad
N/A N/A numpy np bokeh.io vform bokeh.models CustomJS Slider bokeh.plotting figure hplot output_file show ColumnDataSource N/A x N/A N/A np linspace 0 10 500 N/A y N/A N/A np sin x N/A source N/A ColumnDataSource data N/A dict x x y y N/A plot N/A figure y_range N/A -10 10 plot_width 400 plot_height 400 N/A N/A N/A plot line x y source source line_width 3 line_alpha 0.6 N/A callback N/A CustomJS args N/A dict source source code 
    var data = source.get('data');
    var A = amp.get('value')
    var k = freq.get('value')
    var phi = phase.get('value')
    var B = offset.get('value')
    x = data['x']
    y = data['y']
    for (i = 0; i < x.length; i++) {
        y[i] = B + A*Math.sin(k*x[i]+phi);
    }
    source.trigger('change');
 N/A amp_slider N/A Slider start 0.1 end 10 value 1 step 0.1 title Amplitude callback callback callback_policy mouseup N/A N/A N/A callback args N/A amp amp_slider N/A freq_slider N/A Slider start 0.1 end 10 value 1 step 0.1 title Frequency callback callback N/A N/A N/A callback args N/A freq freq_slider N/A phase_slider N/A Slider start 0 end 6.4 value 0 step 0.1 title Phase callback callback N/A N/A N/A callback args N/A phase phase_slider N/A offset_slider N/A Slider start -5 end 5 value 0 step 0.1 title Offset callback callback N/A N/A N/A callback args N/A offset offset_slider N/A layout N/A hplot plot N/A vform amp_slider freq_slider phase_slider offset_slider N/A N/A output_file slider.html title slider.py example N/A N/A show layout