xonsh/xontrib/mpl.py
2016-07-18 11:30:57 +02:00

13 lines
227 B
Python

"""Matplotlib xontribution."""
from xonsh.proc import foreground as _foreground
@_foreground
def _mpl(args, stdin=None):
"""Hooks to matplotlib"""
from xontrib.mplhooks import show
show()
aliases['mpl'] = _mpl