astoff / code-cells.el

Emacs utilities for code split into cells, including Jupyter notebooks
GNU General Public License v3.0
180 stars 11 forks source link

Supports for `light` format? #8

Closed Yevgnen closed 2 years ago

Yevgnen commented 2 years ago

The doc of code-cells-boundary-markers says

They should match immediately after a comment start at the beginning of a line.

It seems that light format is not supported currently. Is something like ^$ for page-delimiter sufficient to add this support?

astoff commented 2 years ago

Well, I guess one could implement this, but it would be a bit complicated. Just look at the examples in the documentation you linked and you'll see most empty lines are not cell breaks.

Why would prefer the light format? I see no advantage in it.

Yevgnen commented 2 years ago

I personally prefer no markers and would like to make the text cells look like natural comment in common Python scripts. I'm not a big fan of jupyter so I generally write scripts, spilt and, wrap them in a notebook, because in some cases I have to keep notebooks to work with others...

jdtsmith commented 2 years ago

Is the "percent" format mentioned there an official format for code-cells?

astoff commented 2 years ago

@jdtsmith I believe this is sufficiently specified in the block right below the screenshot in the README?

astoff commented 2 years ago

I think there's no practical way to support the light format, so I'll close the issue.