def npm_check():
 npm_missing = "\n    npm packages do not appear to be installed.\n    Please navigate to the bokehjs directory and type 'npm install'\n\n    "
 if (not path.exists('../bokehjs/node_modules')):
  print(red(npm_missing))

def npm_check ( ) : npm_missing = "\n    npm packages do not appear to be installed.\n    Please navigate to the bokehjs directory and type 'npm install'\n\n    " if ( not path . exists ( '../bokehjs/node_modules' ) ) : print ( red ( npm_missing ) )
check that the bokehjs/node_modules directory exists .