##// END OF EJS Templates
Avoid crashing if interrupt the kernel during completion....
Avoid crashing if interrupt the kernel during completion. This is likely due to completion taking too long, so just return what we have so far, and ignore the interrupt. closes #10733

File last commit:

r20547:8f4e2b41
r23907:1ad6a295
Show More
list_subdirs.ipy
6 lines | 194 B | text/plain | TextLexer
# A simple IPython script that lists files in all subdirs
from IPython.display import FileLinks, display
dirs =!ls -d */
for d in dirs:
if d != '__pycache__/':
display(FileLinks(d))