##// END OF EJS Templates
The pretty.py extension has been ported to the new extension API....
The pretty.py extension has been ported to the new extension API. I have also cleaned up the extension API to enable extension unloading and have added magics for working with extensions: * %load_ext * %reload_ext * %unload_ext

File last commit:

r856:50044c43
r2281:21a097ae
Show More
test_cd.ipy
18 lines | 289 B | text/plain | TextLexer
# assumes there is /tmp and /opt
def curpath():
cwd = os.path.splitdrive(os.getcwd())[1].replace('\\','/')
print cwd
return cwd
import os
cd /
assert curpath() == '/'
%cd /tmp
assert curpath() == '/tmp'
pushd /opt
assert curpath() == '/opt'
popd
assert curpath() == '/tmp'