MCPcopy Create free account
hub / github.com/Image-Py/imagepy / run

Method run

imagepy/menus/Plugins/Install/installpkg_plgs.py:21–25  ·  view source on GitHub ↗
(self, para=None)

Source from the content-addressed store, hash-verified

19 title = 'List Packages'
20
21 def run(self, para=None):
22 p = subprocess.Popen('%s -m pip list'%sys.executable,
23 stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE, shell = True)
24 lst = str(p.stdout.read(), encoding='utf-8').replace('\r\n', '\n').split('\n')
25 IPy.show_table(pd.DataFrame([[i] for i in lst], columns=['Packages']), 'Packages')
26
27
28plgs = [Install, List]

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected