(self, para=None)
| 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 | |
| 28 | plgs = [Install, List] |