~ellisonbg/ipython/bugfixes0411409

« back to all changes in this revision

Viewing changes to doc/examples/extension.py

  • Committer: ville
  • Date: 2008-02-16 09:50:47 UTC
  • mto: (0.12.1 ipython_main)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: ville@ville-pc-20080216095047-500x6dluki1iz40o
initialization (no svn history)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
 
 
3
import IPython.ipapi
 
4
ip = IPython.ipapi.get()
 
5
 
 
6
def ${name}_f(self, arg):
 
7
    r""" Short explanation
 
8
    
 
9
    Long explanation, examples
 
10
    
 
11
    """
 
12
    
 
13
    # opts,args = self.parse_options(arg,'rx')
 
14
    # if 'r' in opts: pass
 
15
    
 
16
    
 
17
 
 
18
ip.expose_magic("${name}",${name}_f)        
 
19
    
 
20