MCPcopy Index your code
hub / github.com/ipython/ipython / idle

Function idle

IPython/lib/editorhooks.py:86–100  ·  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

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

Callers

nothing calls this directly

Calls 1

install_editorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…