<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def enable_inline_view(f):
 """Decorator to enable in-line viewing in Python and saving to external file. It adds several parameters to each decorated plotted function: Parameters write_to: str (optional) Path to write vega JSON/HTML to. write_format: "auto" | "json" | "html" Whether to create a JSON data file or a full-fledged HTML page. display: "auto" | True | False Whether to try in-line display in IPython indent: int Indentation of JSON """

    @wraps(f)
    def wrapper(hist, write_to=None, write_format="auto", display="auto", indent=2, **kwargs):

        vega_data = f(hist, **kwargs)

        if display is True and not VEGA_IPYTHON_PLUGIN_ENABLED:
            raise RuntimeError("Cannot display vega plot: {0}".format(VEGA_ERROR))

        if display == "auto":
            display = write_to is None

        if write_to:
            write_vega(vega_data, hist.title, write_to, write_format, indent)
            
        return display_vega(vega_data, display)

    return wrapper