Return useful information about IPython and the system, as a string. Examples -------- :: In [2]: print(sys_info()) {'commit_hash': '144fdae', # random 'commit_source': 'repository', 'ipython_path': '/home/fperez/usr/lib/python2.6/site-package
()
| 100 | return pkg_info(str(path)) |
| 101 | |
| 102 | def sys_info() -> str: |
| 103 | """Return useful information about IPython and the system, as a string. |
| 104 | |
| 105 | Examples |
| 106 | -------- |
| 107 | :: |
| 108 | |
| 109 | In [2]: print(sys_info()) |
| 110 | {'commit_hash': '144fdae', # random |
| 111 | 'commit_source': 'repository', |
| 112 | 'ipython_path': '/home/fperez/usr/lib/python2.6/site-packages/IPython', |
| 113 | 'ipython_version': '0.11.dev', |
| 114 | 'os_name': 'posix', |
| 115 | 'platform': 'Linux-2.6.35-22-generic-i686-with-Ubuntu-10.10-maverick', |
| 116 | 'sys_executable': '/usr/bin/python', |
| 117 | 'sys_platform': 'linux2', |
| 118 | 'sys_version': '2.6.6 (r266:84292, Sep 15 2010, 15:52:39) \\n[GCC 4.4.5]'} |
| 119 | """ |
| 120 | return pprint.pformat(get_sys_info()) |
no test coverage detected
searching dependent graphs…