def bokeh_installer(env_name, install_string):
 if (os.name == 'nt'):
  command_string = ('activate %s & %s' % (env_name, install_string))
 else:
  command_string = ('source activate %s; %s' % (env_name, install_string))
 result = subprocess.call(command_string, shell=True, executable='/bin/bash')
 return (result == 0)

def bokeh_installer ( env_name , install_string ) : if ( os . name == 'nt' ) : command_string = ( 'activate %s & %s' % ( env_name , install_string ) ) else : command_string = ( 'source activate %s; %s' % ( env_name , install_string ) ) result = subprocess . call ( command_string , shell = True , executable = '/bin/bash' ) return ( result == 0 )
activate an environment and run its install string to either install or update bokeh using conda or pip .