'Save a copy of the current state of the widget in plotly.
:param (bool) ignore_defaults: Auto-fill in unspecified figure keys?
:param (str) filename: Name of the file on plotly.'

def save(self, ignore_defaults=False, filename=''):

    self._flags['save_pending'] = True
    self._filename = filename
    message = {'task': 'getAttributes', 'ignoreDefaults': ignore_defaults}
    self._handle_outgoing_message(message)
    self._fade_to('slow', 0.1)
