jupytext icon indicating copy to clipboard operation
jupytext copied to clipboard

what are # +, # - comments?

Open methsmonker42zero opened this issue 2 years ago • 1 comments

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?

methsmonker42zero avatar Sep 09 '23 20:09 methsmonker42zero

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.

mwouts avatar Sep 16 '23 20:09 mwouts