From c377a7c0450f005eb7ca5619ef18c31a2d57376f 2011-02-14 22:14:33 From: Aenugu Sai Kiran Reddy Date: 2011-02-14 22:14:33 Subject: [PATCH] Add example for %pwd magic command. --- diff --git a/IPython/core/magic.py b/IPython/core/magic.py index 12df58c..e1d3fea 100644 --- a/IPython/core/magic.py +++ b/IPython/core/magic.py @@ -2605,7 +2605,16 @@ Defaulting color scheme to 'NoColor'""" os.chdir(savedir) def magic_pwd(self, parameter_s = ''): - """Return the current working directory path.""" + """Return the current working directory path. + + Example + ------- + + :: + + In [9]: pwd + Out[9]: '/home/tsuser/sprint/ipython' + """ return os.getcwd() def magic_cd(self, parameter_s=''):