python - IPython: Running commands asynchronously in the background -


say have python command or script want run ipython asynchronously, in background, during ipython session.

i invoke command ipython session , notified when done, or if fails. don't want command block ipython prompt.

are there ipython magics support this? if not, recommended way of running asynchronous jobs/scripts/commands (that run locally) on ipython?

for example, have function:

def do_something():    # take long time    # ....    return "done" 

that have in current namespace. how can run background , notified when done?

there used magic function in ipython let that: https://github.com/ipython/ipython/wiki/cookbook:-running-a-file-in-the-background

however, seems removed , still pending come in newer versions: https://github.com/ipython/ipython/issues/844

it still provides library achieve it, though: http://ipython.org/ipython-doc/rel-0.10.2/html/api/generated/ipython.background_jobs.html


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -