Skip to content

Cell level error handling #286

Open
Open
@ghost

Description

Hello,

When the evaluation of a cell throws an exception, the variable that was to be assigned the value becomes unavailable to subsequent calls, and all cells that reference that variables are now marked as error.

This is a problem when you have cases like this:

a = ... something that throws

b = ... something that doesn't throw

c = testThatsFalse ? a : b

It'd be better that c works.

I suggest that if the evaluation of a fails, a gets assigned an 'Error' type value, which can then be further processed. As in c = isError(a) ? b : a.

Happy to work on a PR if you think this could be a good idea.
This obviously would impact the way the minimap works, but I don't think there's a case where old notebooks would suffer from this change.
It's a one-way change though...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions