Important
This documentation covers IPython versions 6.0 and higher. Beginning with version 6.0, IPython stopped supporting compatibility with Python versions lower than 3.3 including all versions of Python 2.7.
If you are looking for an IPython version compatible with Python 2.7, please use the IPython 5.x LTS release and refer to its documentation (LTS is the long term support release).
Module:utils.sysinfo
Utilities for getting information about IPython and the system it’s running in.
4 FunctionsGet short form of commit hash given directory pkg_path
We get the commit hash from (in order of preference):
IPython.utils._sysinfo.commit
git output, if we are in a git repository
If these fail, we return a not-found placeholder tuple
pkg_path (str) – directory containing package only used for getting commit from active repo
hash_from (str) – Where we got the hash from - description
hash_str (str) – short form of hash
Return dict describing the context of this package
Return useful information about IPython and the system, as a dict.
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-packages/IPython', 'ipython_version': '0.11.dev', 'os_name': 'posix', 'platform': 'Linux-2.6.35-22-generic-i686-with-Ubuntu-10.10-maverick', 'sys_executable': '/usr/bin/python', 'sys_platform': 'linux2', 'sys_version': '2.6.6 (r266:84292, Sep 15 2010, 15:52:39) \n[GCC 4.4.5]'}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4