MCPcopy Create free account
hub / github.com/ipython/ipython / idle

Function idle

IPython/lib/editorhooks.py:87–101  ·  view source on GitHub ↗

Idle, the editor bundled with python Parameters ---------- exe : str, None If none, should be pretty smart about finding the executable.

(exe=u'idle')

Source from the content-addressed store, hash-verified

85
86
87def idle(exe=u'idle'):
88 """ Idle, the editor bundled with python
89
90 Parameters
91 ----------
92 exe : str, None
93 If none, should be pretty smart about finding the executable.
94 """
95 if exe is None:
96 import idlelib
97 p = os.path.dirname(idlelib.__filename__)
98 # i'm not sure if this actually works. Is this idle.py script
99 # guaranteed to be executable?
100 exe = os.path.join(p, 'idle.py')
101 install_editor(exe + u' {filename}')
102
103
104def mate(exe=u'mate'):

Callers

nothing calls this directly

Calls 1

install_editorFunction · 0.85

Tested by

no test coverage detected