def render_refresh_button(full=False, style="position: absolute; right: 0; top: 0;", content=None):
    """Renders a "refresh" button which re-executes the current cell.
    If full is True, a double-click will re-execute the entire notebook, and the button
    will visually indicate that this is necessary.

    If content is set, overrides the default "refresh" symbols
    """
    txt = """<button style="{}" onclick="IPython.notebook.execute_cell()""".format(style)
    content = content or "&#8635;"
    if full:
        title = "The underlying directories have changed so you might want to " + \
                "rerun the whole notebook. Double-click to rerun the notebook up to and including " + \
                "this cell, or click to rerun this cell only"
        txt += f"""color:red;"
            title="%s" ondblclick="document.radiopadre.execute_to_current_cell();"
            >{content}</button>
        """ % title
    else:
        txt += f""";"
            title="Click to rerun this cell and refresh its contents."
            >{content}</button>
        """
    return txt