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
Could Literate accommodate cells of execution (VS code)? #119
Comments
This was discussed on https://discourse.julialang.org/t/literate-leaves-behind-extraneous/44777 as well (including some concrete examples). |
@PetrKryslUCSD you can use the function preprocess(content)
return replace(content, r"^##$."ms => "")
end This matches lines that are exactly Pass it to Literate by calling e.g. |
It's much cleaner to explicitly use this preprocessing than to build in some hard-coded processing for one specific environment, so should this issue be closed now? (I also pointed out the |
Could be added to the "Tips and Tricks" section in the manual. Would you like to make a PR? |
VS code uses 2#'s at the beginning of the line to indicate the start of a cell.
Literate interprets this to leave behind a comment.
Could this be accommodated somehow?
@pfitzseb Also pointed out that the VS code team is thinking about using #%% as the start-of-cell marker.
The text was updated successfully, but these errors were encountered: