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

Function sys_info

IPython/utils/sysinfo.py:102–120  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

100 return pkg_info(str(path))
101
102def 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())

Callers 1

make_reportMethod · 0.90

Calls 1

get_sys_infoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…