##// END OF EJS Templates
new completer for qtconsole....
new completer for qtconsole. add a completer to the qtconsole that is navigable by arraow keys and tab. One need to call it twice to get it on focus and be able to select completion with Return. looks like zsh completer, not the gui drop down list of --gui-completer. This also try to split the completion logic from console_widget, and try to keep the old completer qui around. The plain completer that never takes focus back, and the QlistWidget completer. to switch between the 3, the --gui-completion flag as been changed to take an argument (plain, droplist, ncurses).

File last commit:

r6455:15863dc1
r7389:1422d277
Show More
task2.py
50 lines | 924 B | text/x-python | PythonLexer
#!/usr/bin/env python
# encoding: utf-8
from IPython.parallel import Client
import time
import sys
flush = sys.stdout.flush
rc = Client()
v = rc.load_balanced_view()
mux = rc[:]
for i in range(24):
v.apply(time.sleep, 1)
for i in range(6):
time.sleep(1.0)
print("Queue status (vebose=False)")
print(v.queue_status(verbose=False))
flush()
for i in range(24):
v.apply(time.sleep, 1)
for i in range(6):
time.sleep(1.0)
print("Queue status (vebose=True)")
print(v.queue_status(verbose=True))
flush()
for i in range(12):
v.apply(time.sleep, 2)
print("Queue status (vebose=True)")
print(v.queue_status(verbose=True))
flush()
# qs = v.queue_status(verbose=True)
# queued = qs['scheduled']
for msg_id in v.history[-4:]:
v.abort(msg_id)
for i in range(6):
time.sleep(1.0)
print("Queue status (vebose=True)")
print(v.queue_status(verbose=True))
flush()