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

what are # +, # - comments? #1125

Open
methsmonker42zero opened this issue Sep 9, 2023 · 1 comment
Open

what are # +, # - comments? #1125

methsmonker42zero opened this issue Sep 9, 2023 · 1 comment

Comments

@methsmonker42zero
Copy link

i jupytext converted back a jupyter notebook to py and it overwrote the file without query, so far so good.
but in the resulting file, there are # +, # - commands enclosing only some of the former cells in the jupyter notebook, so what do these mean and why do they only enclose some of the former cells, what is special about the cells enclosed by these comments?

@mwouts
Copy link
Owner

mwouts commented Sep 16, 2023

Hey @methsmonker42zero , these markers are typical of the light format documented here.

You might prefer to use the percent format instead (jupytext --to py:percent). That format is documented here, and is better supported in other IDEs like VS Code or PyCharm.

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

2 participants