##// END OF EJS Templates
ipy_leo: @ev node support, have _p (LeoNode for current pos) in user_ns on normal ipython script execution
ipy_leo: @ev node support, have _p (LeoNode for current pos) in user_ns on normal ipython script execution

File last commit:

r988:2f09c2ab
r1018:c8bcd86d
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)