Permalink
Browse files

Wrote examples for %cdmagic

Work done as a team by:
Anuradha Beetoju
Adish
Naveen
Shravan
  • Loading branch information...
1 parent c377a7c commit 152a7605abb6d08e713dd855ce560d4a59c1ee7b @Anuradha123 Anuradha123 committed with Feb 14, 2011
Showing with 10 additions and 1 deletion.
  1. +10 −1 IPython/core/magic.py
View
11 IPython/core/magic.py
@@ -2647,7 +2647,16 @@ def magic_cd(self, parameter_s=''):
since the default prompts do not display path information.
Note that !cd doesn't work for this purpose because the shell where
- !command runs is immediately discarded after executing 'command'."""
+ !command runs is immediately discarded after executing 'command'.
+
+ Example
+ --------
+
+ ::
+
+ In [10]: cd parent/child
+ /home/tsuser/parent/child
+ """
parameter_s = parameter_s.strip()
#bkms = self.shell.persist.get("bookmarks",{})

0 comments on commit 152a760

Please sign in to comment.