Skip to content

Show error animation in code cell when error is triggered  #1144

@andrewfulton9

Description

@andrewfulton9

With JupyterLab #15344 the ability to add an error animation to a code call was added.

image

It should be relatively straight forward to allow the jupyter-ai completers to enable this functionality.

Problem

The jupyter-ai error reporting on inline completion differs from jupyterlab completer. Currently jupyterlab shows a flashing icon in the cell, while jupyter-ai has a notification warning

Proposed Solution

I propose allowing jupyter-ai to emit the error field when there is an error in the generation process. I am not sure if this should be in place of the error notification, or alongside of it. The benefit of keeping it alongside the current notification would be that the current notification gives more context.

Additional context

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