def install_js():
 target_jsdir = join(SERVER, 'static', 'js')
 target_cssdir = join(SERVER, 'static', 'css')
 STATIC_ASSETS = [join(JS, 'bokeh.js'), join(JS, 'bokeh.min.js'), join(CSS, 'bokeh.css'), join(CSS, 'bokeh.min.css')]
 if (not all([exists(a) for a in STATIC_ASSETS])):
  print(BOKEHJS_INSTALL_FAIL)
  sys.exit(1)
 if exists(target_jsdir):
  shutil.rmtree(target_jsdir)
 shutil.copytree(JS, target_jsdir)
 if exists(target_cssdir):
  shutil.rmtree(target_cssdir)
 shutil.copytree(CSS, target_cssdir)

def install_js ( ) : target_jsdir = join ( SERVER , 'static' , 'js' ) target_cssdir = join ( SERVER , 'static' , 'css' ) STATIC_ASSETS = [ join ( JS , 'bokeh.js' ) , join ( JS , 'bokeh.min.js' ) , join ( CSS , 'bokeh.css' ) , join ( CSS , 'bokeh.min.css' ) ] if ( not all ( [ exists ( a ) for a in STATIC_ASSETS ] ) ) : print ( BOKEHJS_INSTALL_FAIL ) sys . exit ( 1 ) if exists ( target_jsdir ) : shutil . rmtree ( target_jsdir ) shutil . copytree ( JS , target_jsdir ) if exists ( target_cssdir ) : shutil . rmtree ( target_cssdir ) shutil . copytree ( CSS , target_cssdir )
copy built bokehjs files into the python source tree .