Simplify .py listing code, moving Misc examples.

This commit is contained in:
Brian E. Granger 2014-04-01 15:39:52 -07:00
parent e2872359c6
commit 6745281cdc
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,6 @@
# 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))

View File

@ -0,0 +1,6 @@
# A simple IPython script that lists files in all subdirs
from IPython.display import FileLinks, display
dirs =!ls -d */
for d in dirs:
display(FileLinks(d))