Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

.py files should be invoked cell by cell? #3

Description

@breathe

Notebooks encoded into .py files (as by vscode-python extension) should detect cell boundaries (delineated via ‘# %%’) and execute the file in cell sized chunks. This is needed to best match the semantics of cell magic directives.

I didn’t implement this yet because I want to use compile() method to provide correct line mappings back to original source so that tools like debuggers work as expected when breakpoints are placed inside the target notebook file. I’m not sure yet how to support correct line mapping for debuggers while also exec’ing the cells one at a time ... for the moment I consider the debug ability more valuable but would like to fix this if can figure out how ...

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions