##// END OF EJS Templates
Fixed image keys in templates to reflect changes to ExtractFigureTransformer....
Fixed image keys in templates to reflect changes to ExtractFigureTransformer. This already existed in the YAML branch, but got dumped on the move to the no-YAML branch.

File last commit:

r9190:20a102a5
r11471:cb404f29
Show More
hb_gil.py
31 lines | 574 B | text/x-python | PythonLexer
"""
Run this script in the qtconsole with one of:
%load hb_gil.py
or
%run hb_gil.py
Holding the GIL for too long could disrupt the heartbeat.
See Issue #1260: https://github.com/ipython/ipython/issues/1260
"""
import sys
import time
from cython import inline
def gilsleep(t):
"""gil-holding sleep with cython.inline"""
code = '\n'.join([
'from posix cimport unistd',
'unistd.sleep(t)',
])
while True:
inline(code, quiet=True, t=t)
print(time.time())
sys.stdout.flush() # this is important
gilsleep(5)