mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
minor updates
This commit is contained in:
parent
8f886ca11a
commit
b74d06431d
3 changed files with 13 additions and 9 deletions
2
setup.py
2
setup.py
|
@ -135,7 +135,7 @@ def main():
|
|||
url='https://github.com/scopatz/xonsh',
|
||||
platforms='Cross Platform',
|
||||
classifiers=['Programming Language :: Python :: 3'],
|
||||
packages=['xonsh', 'xonsh.ptk', 'xonsh.parsers'],
|
||||
packages=['xonsh', 'xonsh.ptk', 'xonsh.parsers', 'xontrib'],
|
||||
cmdclass={'install': xinstall, 'sdist': xsdist},
|
||||
)
|
||||
if HAVE_SETUPTOOLS:
|
||||
|
|
|
@ -382,13 +382,6 @@ def vox(args, stdin=None):
|
|||
return vox(args, stdin=stdin)
|
||||
|
||||
|
||||
@foreground
|
||||
def mpl(args, stdin=None):
|
||||
"""Hooks to matplotlib"""
|
||||
from xonsh.mplhooks import show
|
||||
show()
|
||||
|
||||
|
||||
def make_default_aliases():
|
||||
"""Creates a new default aliases dictionary."""
|
||||
default_aliases = {
|
||||
|
@ -412,7 +405,6 @@ def make_default_aliases():
|
|||
'replay': replay_main,
|
||||
'!!': bang_bang,
|
||||
'!n': bang_n,
|
||||
'mpl': mpl,
|
||||
'trace': trace,
|
||||
'timeit': timeit_alias,
|
||||
'xonfig': xonfig,
|
||||
|
|
12
xontrib/mpl.py
Normal file
12
xontrib/mpl.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
"""Matplotlib xontribution."""
|
||||
|
||||
from xonsh.proc import foreground
|
||||
|
||||
@foreground
|
||||
def _mpl(args, stdin=None):
|
||||
"""Hooks to matplotlib"""
|
||||
from xonsh.mplhooks import show
|
||||
show()
|
||||
|
||||
|
||||
aliases['mpl'] = _mpl
|
Loading…
Add table
Reference in a new issue