code: def reset(new_delta, new_gamma, new_omega):
      global delta, gamma, omega, dt, t, xprev, x, n, alpha
      delta = new_delta
      gamma = new_gamma
      omega = new_omega
      dt = 2 * np.pi / omega / timesteps_per_period
      alpha = delta / (2 * dt)
      n = 0
      t = 0
      xprev = 0
      x = 0
  
      cds0.data = dict(x=[0], xdot=[0])
      cds1.data = dict(x=[], xdot=[])
  
      line.data_source = cds0
      circle.data_source = cds1
  
file_path: bokeh/examples/server/app/duffing_oscillator.py
imports: import numpy
  from bokeh.layouts import column, row
  from bokeh.models import ColumnDataSource, Div, Paragraph, Range1d, Slider
  from bokeh.plotting import curdoc, figure
label_desc: Use image node_id 2 for calling a global function with example usage: reset(new_delta, new_gamma, new_omega) without return types