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

Stop removing leading comments and new lines #58

Closed
BoPeng opened this issue Mar 26, 2018 · 1 comment
Closed

Stop removing leading comments and new lines #58

BoPeng opened this issue Mar 26, 2018 · 1 comment

Comments

@BoPeng
Copy link
Contributor

BoPeng commented Mar 26, 2018

SoS Notebook is pretty loose on "header" in the sense that it ignores leading comments (# lines) and empty lines. So one can write

# this step does this
%expand

This however does not work if we are to include kernels and languages with significant # (e.g. #57 ). I think it makes sense to require SoS magics to start from the first line, and any new line would stop SoS from processing the text as header. This also solves the problem with #33 because we can simply do

%sosmagic

%cellmagic
@BoPeng BoPeng closed this as completed Mar 26, 2018
@BoPeng
Copy link
Contributor Author

BoPeng commented Mar 26, 2018

116ac4a

BoPeng pushed a commit that referenced this issue Mar 26, 2018
BoPeng pushed a commit to vatlab/sos-docs that referenced this issue Mar 28, 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