-
DescriptionI expected to find tests of this but wasn't able to on a quick search. General round-trip consistency (preserving line breaks and white space, for example) would ease collaboration between people who prefer working with different formats. For example, see: posit-dev/positron#1533 (comment) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
We'd like for that to be the case. But, frankly speaking, it's easier said than done. In general, the two formats are simply not equivalent. We might be able to offer something (admittedly significantly) weaker, like |
Beta Was this translation helpful? Give feedback.
-
For reference, the Jupytext docs currently state:
Jupytext also appears to have some round-trip tests:
|
Beta Was this translation helpful? Give feedback.
We'd like for that to be the case. But, frankly speaking, it's easier said than done. In general, the two formats are simply not equivalent.
We might be able to offer something (admittedly significantly) weaker, like
convert(convert(convert(x))) = convert(x)
, butconvert(convert(x)) = x
is pretty hard because that requires pinning down the behavior for every documentx
, and there's a large degree of freedom in how that works.