##// END OF EJS Templates
Add an input argument to *all* Display constructors....
Add an input argument to *all* Display constructors. Change the ibrowse and other constructors from __init__(self, input=None, attrs=None) to __init__(self, input=None, *attrs) Move "import astyle" down as far as possible to avoid problems wth circular imports.

File last commit:

r689:7f3a0fb7
r953:9f0e1328
Show More
extension.py
20 lines | 339 B | text/x-python | PythonLexer
# -*- 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)