Skip to content
Browse files

Examples for %lsmagic

  • Loading branch information...
1 parent 3498382 commit 89eb2c27492287f4e37ab2bf8ed6728ca6b48be3 Asokan committed Dec 18, 2010
Showing with 15 additions and 1 deletion.
  1. +15 −1 IPython/core/magic.py
View
16 IPython/core/magic.py
@@ -308,7 +308,21 @@ def parse_options(self,arg_str,opt_str,*long_opts,**kw):
# Functions for IPython shell work (vars,funcs, config, etc)
def magic_lsmagic(self, parameter_s = ''):
- """List currently available magic functions."""
+ """List currently available magic functions.
+
+ Examples
+ --------
+
+ Some explanation::
+
+ In [3]: %lsmagic
+ Available magic functions:
+ %Exit %Pprint %Quit %alias %autocall %autoindent %automagic
+ %bookmark %cd %colors %cpaste %debug %dhist %dirs
+ %doctest_mode %ed %edit %env %exit %gui %hist %history ...etc.
+
+ Automagic is ON, % prefix NOT needed for magic functions.
+ """
mesc = ESC_MAGIC
print 'Available magic functions:\n'+mesc+\
(' '+mesc).join(self.lsmagic())

0 comments on commit 89eb2c2

Please sign in to comment.
Something went wrong with that request. Please try again.