Skip to content

Locked src_block cells after running dead python sessions #538

Open
@fraricci

Description

@fraricci

Hi there.

I had the following happening and wanted to know if it's a bug or it's more a
misuse of the package on my end.

I have an org document with some src blocks with a remote python session.
When that session ends I run that cell by accident, the cell is "locked" and any
edits is forbidden. I think this is done using an overlay. Now, since that session
does not exist anymore, the connection hangs for a while and I just stop it (C-g).
But, the overlay stays and that part of the buffer is not editable anymore.

Now, should I just wait that jupyter-emacs realizes that the session has gone,
gets back to me with some message, and unlocks that src block?
Or this logic is not implemented yet.
Or just be careful not to run cells connected to dead sessions ;-)

What I ended up doing is to remove the overlay manually with an dedicated
emacs function with the start and end of that region, but it's pretty annoying.

Any feedback is appreciate.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions