def jsbuild_prompt():
 print(BOKEHJS_BUILD_PROMPT)
 mapping = {'1': True, '2': False}
 value = input('Choice? ')
 while (value not in mapping):
  print(("Input '%s' not understood. Valid choices: 1, 2\n" % value))
  value = input('Choice? ')
 return mapping[value]

def jsbuild_prompt ( ) : print ( BOKEHJS_BUILD_PROMPT ) mapping = { '1' : True , '2' : False } value = input ( 'Choice? ' ) while ( value not in mapping ) : print ( ( "Input '%s' not understood. Valid choices: 1, 2\n" % value ) ) value = input ( 'Choice? ' ) return mapping [ value ]
prompt users whether to build a new bokehjs or install an existing one .