{ } Raw JSON

bundles / IPython 9.17.0 / IPython / core / hooks / editor

function

IPython.core.hooks:editor

source: /dev/ipython/IPython/core/hooks.py:58

Signature

def editor(self, filename, linenum = None, wait = True)

Summary

Open the default editor at the given filename and linenumber.

Extended Summary

This is IPython's default editor hook, you can use it as an example to write your own modified one. To set your own editor function as the new editor hook, call ip.set_hook('editor',yourfunc).

Aliases

  • IPython.core.hooks.editor