Esempio n. 1
0
    def download(self, notebook, snippet, format):
        try:
            api = get_spark_api(self.user)
            session = _get_snippet_session(notebook, snippet)
            cell = snippet['result']['handle']['id']

            return spark_download(api, session['id'], cell, format)
        except Exception, e:
            raise PopupException(e)
Esempio n. 2
0
  def download(self, notebook, snippet, format):
    try:
      api = get_spark_api(self.user)
      session = _get_snippet_session(notebook, snippet)
      cell = snippet['result']['handle']['id']

      return spark_download(api, session['id'], cell, format)
    except Exception, e:
      raise PopupException(e)