xonsh/xontrib/mpl.py

12 lines
207 B
Python
Raw Normal View History

2016-05-08 20:17:48 -04:00
"""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