Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
breathe opened this issue Nov 27, 2018 · 0 comments
Open

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

breathe opened this issue Nov 27, 2018 · 0 comments

Comments

@breathe
Copy link
Owner

breathe commented Nov 27, 2018

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 ...

@breathe breathe changed the title .py files should be invoked cell by cell .py files should be invoked cell by cell? Apr 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant