MCPcopy Create free account
hub / github.com/ipython/ipython / sys_info

Function sys_info

IPython/utils/sysinfo.py:101–119  ·  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

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

Callers 1

make_reportMethod · 0.90

Calls 1

get_sys_infoFunction · 0.85

Tested by

no test coverage detected