charting/chart.py
def save_chart(chart, filename, scale_factor=1, **kwargs):
    """
    dumbed down version of altair save function that just assumes
    we're sending extra properties to the embed options
    """
    if isinstance(filename, Path):
        # altair doesn't process paths right
        if filename.parent.exists() is False:
            filename.parent.mkdir()
        filename = str(filename)

    altair_save_chart(
        chart,
        filename,
        scale_factor=scale_factor,
        embed_options=kwargs,
        method=Renderer.default_renderer,
    )

    dumbed down version of altair save function that just assumes
    we're sending extra properties to the embed options
    
dumbed down version of altair save function that just assumes
we're sending extra properties to the embed options
dumbed down version of altair save function that just assumes we ' re sending extra properties to the embed options
def save_chart(chart, filename, scale_factor=1, **kwargs):
    if isinstance(filename, Path):
        if filename.parent.exists() is False:
            filename.parent.mkdir()
        filename = str(filename)
    altair_save_chart(
        chart,
        filename,
        scale_factor=scale_factor,
        embed_options=kwargs,
        method=Renderer.default_renderer,
    )
def save_chart ( chart , filename , scale_factor = 1 , ** kwargs ) : if isinstance ( filename , Path ) : if filename . parent . exists ( ) is False : filename . parent . mkdir ( ) filename = str ( filename ) altair_save_chart ( chart , filename , scale_factor = scale_factor , embed_options = kwargs , method = Renderer . default_renderer , )
dumbed down version of altair save function that just assumes
we're sending extra properties to the embed options
dumbed down version of altair save function that just assumes we ' re sending extra properties to the embed options
"""
    dumbed down version of altair save function that just assumes
    we're sending extra properties to the embed options
    """ # altair doesn't process paths right
chart
filename
scale_factor