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

Method list_profile_dirs

IPython/core/profileapp.py:164–190  ·  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("Available profiles in current directory (%s):" % os.getcwd())
185 self._print_profiles(profiles)
186
187 print()
188 print("To use any of the above profiles, start IPython with:")
189 print(" ipython --profile=<name>")
190 print()
191
192 def start(self):
193 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