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

Function list_bundled_profiles

IPython/core/profileapp.py:109–119  ·  view source on GitHub ↗

list profiles that are bundled with IPython.

()

Source from the content-addressed store, hash-verified

107
108
109def list_bundled_profiles():
110 """list profiles that are bundled with IPython."""
111 path = os.path.join(get_ipython_package_dir(), u'core', u'profile')
112 profiles = []
113
114 # for python 3.6+ rewrite to: with os.scandir(path) as dirlist:
115 files = os.scandir(path)
116 for profile in files:
117 if profile.is_dir() and profile.name != "__pycache__":
118 profiles.append(profile.name)
119 return profiles
120
121
122class ProfileLocate(BaseIPythonApplication):

Callers 2

list_profile_dirsMethod · 0.85

Calls 1

get_ipython_package_dirFunction · 0.90

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…