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

Escape jupyter magic commands #29

Closed
mwouts opened this issue Aug 14, 2018 · 1 comment
Closed

Escape jupyter magic commands #29

mwouts opened this issue Aug 14, 2018 · 1 comment

Comments

@mwouts
Copy link
Owner

mwouts commented Aug 14, 2018

Python cells in R markdown files and plain python files cannot contain jupyter magic commands. These should be escaped, in a revertible way so that reconstructed jupyter notebook remains unchanged.

@mwouts
Copy link
Owner Author

mwouts commented Aug 16, 2018

Not all lines that start with % are jupyter magics... Pytest features, and more generally python decorators also start with the percent sign. I will restrict the escaping of magic commands to the built-in magic commands

mwouts added a commit that referenced this issue Aug 18, 2018
Introduced a StringParser for detecting quoted lines
'active' option available for .py and .R extensions #30
magic commands ignored when quoted #29
mwouts added a commit that referenced this issue Aug 21, 2018
@mwouts mwouts closed this as completed Aug 21, 2018
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