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

Method _script_magics_default

IPython/core/magics/script.py:86–104  ·  view source on GitHub ↗

default to a common list of programs

(self)

Source from the content-addressed store, hash-verified

84 ).tag(config=True)
85 @default('script_magics')
86 def _script_magics_default(self):
87 """default to a common list of programs"""
88
89 defaults = [
90 'sh',
91 'bash',
92 'perl',
93 'ruby',
94 'python',
95 'python2',
96 'python3',
97 'pypy',
98 ]
99 if os.name == 'nt':
100 defaults.extend([
101 'cmd',
102 ])
103
104 return defaults
105
106 script_paths = Dict(
107 help="""Dict mapping short 'ruby' names to full paths, such as '/opt/secret/bin/ruby'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected