Got something crude working, it introduces about a second of lag when I start vim but it's acceptable for now.
def loadnumpy():
logger.debug( 'received /loadnumpy request' )
return jedi.preload_module('numpy')
Then in JediCompleter init I wait until the server is ready before I load numpy.
self._StartServer()
from time import sleep
while not self.ServerIsReady():
sleep(0.1)
self._GetResponse('/loadnumpy')
Does the trick but I am hoping I can accomplish this in an asynchronous fashion. Any suggestions for that would be helpful.