Skip to content

Add a new api to return all outputs for a cell #69

@3coins

Description

@3coins

The current outputs service only provides an api for fetching each outputs individually. During initial loads for a notebook, for cells that have more than one outputs, this causes multiple fetch calls increasing network traffic and potentially delaying hydrating the outputs for the notebook. Outputs service should provide a new api to return all outputs for the cell in a single request.

Expected request url

/api/outputs/{file_id}/{cell_id}

Expected response

[
  {
    "output_type": "stream",
    "text": "Hello World 1"  
  }, 
  {
    "output_type": "stream",
    "text": "Hello World 2"
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions