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

Method list_profile_dirs

IPython/core/profileapp.py:164–191  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

162 print(' %s' % profile)
163
164 def list_profile_dirs(self):
165 profiles = list_bundled_profiles()
166 if profiles:
167 print()
168 print("Available profiles in IPython:")
169 self._print_profiles(profiles)
170 print()
171 print(" The first request for a bundled profile will copy it")
172 print(" into your IPython directory (%s)," % self.ipython_dir)
173 print(" where you can customize it.")
174
175 profiles = list_profiles_in(self.ipython_dir)
176 if profiles:
177 print()
178 print("Available profiles in %s:" % self.ipython_dir)
179 self._print_profiles(profiles)
180
181 profiles = list_profiles_in(os.getcwd())
182 if profiles:
183 print()
184 print(
185 "Profiles from CWD have been removed for security reason, see CVE-2022-21699:"
186 )
187
188 print()
189 print("To use any of the above profiles, start IPython with:")
190 print(" ipython --profile=<name>")
191 print()
192
193 def start(self):
194 self.list_profile_dirs()

Callers 1

startMethod · 0.95

Calls 3

_print_profilesMethod · 0.95
list_bundled_profilesFunction · 0.85
list_profiles_inFunction · 0.85

Tested by

no test coverage detected