##// END OF EJS Templates
Backport PR #8271: Allow to set same mode as existing if load fails....
Backport PR #8271: Allow to set same mode as existing if load fails. Setting the mode many times in a row, would fail to actually set the mode if it was failing to load the mode the first time. The prevent the above behavior by falling back **explicitly** to 'null' if mode does not exist yet, or can't be loaded. ...

File last commit:

r16136:94a4d14e
r21463:d66c4462
Show More
list_pyfiles.ipy
5 lines | 182 B | text/plain | TextLexer
Brian E. Granger
Simplify .py listing code, moving Misc examples.
r16134 # A simple IPython script that provides Notebook links to .py files in the cwd
from IPython.display import FileLink, display
files =!ls *.py
for f in files:
display(FileLink(f))