##// END OF EJS Templates
%magic -brief: print, rather than return, the result.
Bradley M. Froehle -
Show More
@@ -101,8 +101,6 b' class BasicMagics(Magics):'
101 return
101 return
102 else:
102 else:
103 magic_docs = format_screen(magic_docs)
103 magic_docs = format_screen(magic_docs)
104 if mode == 'brief':
105 return magic_docs
106
104
107 out = ["""
105 out = ["""
108 IPython's 'magic' functions
106 IPython's 'magic' functions
@@ -294,7 +292,7 b' Defaulting color scheme to \'NoColor\'"""'
294 def quickref(self,arg):
292 def quickref(self,arg):
295 """ Show a quick reference sheet """
293 """ Show a quick reference sheet """
296 from IPython.core.usage import quick_reference
294 from IPython.core.usage import quick_reference
297 qr = quick_reference + self.magic('-brief')
295 qr = quick_reference + self._magic_docs(brief=True)
298 page.page(qr)
296 page.page(qr)
299
297
300 @line_magic
298 @line_magic
General Comments 0
You need to be logged in to leave comments. Login now