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:core.alias
System command aliases.
Authors:
Fernando Perez
Brian Granger
Bases: Exception
Bases: AliasError
Bases: object
Callable object storing the details of one alias.
Instances are registered as magic functions to allow use of aliases.
Validate the alias, and return the number of arguments.
Bases: Configurable
Create a configurable given a config config.
config (Config) – If this is empty, default values are used. If config is a Config
instance, it will be used to configure the instance.
parent (Configurable instance, optional) – The parent Configurable instance of this object.
Notes
Subclasses of Configurable must call the __init__()
method of Configurable
before doing anything else and using super()
:
class MyConfigurable(Configurable): def __init__(self, config=None): super(MyConfigurable, self).__init__(config=config) # Then any other code you need to finish initialization.
This ensures that instances will be configured properly.
Define a new alias after validating it.
This will raise an AliasError
if there are validation problems.
Return an alias, or None if no alias by that name exists.
Return whether or not a given name has been defined as an alias
Retrieve the command to which an alias expands.
Define an alias, but don’t raise on an AliasError.
Return list of shell aliases to auto-define.
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