File: extension.py

package info (click to toggle)
ipython 0.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,564 kB
  • ctags: 3,288
  • sloc: python: 22,341; lisp: 262; sh: 60; makefile: 29
file content (20 lines) | stat: -rw-r--r-- 319 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- coding: utf-8 -*-

import IPython.ipapi
ip = IPython.ipapi.get()

def ${name}_f(self, arg):
    r""" Short explanation
    
    Long explanation, examples
    
    """
    
    # opts,args = self.parse_options(arg,'rx')
    # if 'r' in opts: pass
    
    

ip.expose_magic("${name}",${name}_f)