-
Notifications
You must be signed in to change notification settings - Fork 3
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
Notebook file format that makes version control and merging easier #78
Comments
Is there code for such a format for serializing simple case classes? If so, If not, we'll have to write our own serialization and deserialization that, I think all relevant code is in Document.scala.
|
While I think we can reduce the number of necessary properties to be stored, such that own serialization should be super simple, json4s has XML support! (my dream data format would still be text/markdown only, with scala cells markdown code blocks with some extra properties where needed, maybe specified through html comments) |
I can try out the json4s XML serialization, if that's good enough. XML is I would be okay for a direct text/markdown format as well. On Sat, Aug 22, 2015 at 4:10 PM, Sebastian Riedel [email protected]
|
I don't think XML will be a problem here, because in most cases it's the cell content that will dominate the file. The only thing that could be improved is using xml attributes for cell attributes, as opposed to child elements, but that may not be possible with json4s. HOCON would be great---is there an automatic serializer for this? |
No, no automated io for HOCON, but should be easier than from scratch. On Sun, Aug 23, 2015 at 1:57 AM, Sebastian Riedel [email protected]
|
Notebooks are often collaboratively edited (e.g. the tutorial, or the book project). Any conflicting changes on notebooks are super difficult to resolve due to the json file format, and the fact that new lines in the raw text are escaped in json. So conflicts in the same cell (which can be quite large in my cases) are almost impossible to resolve easily.
Possible remedies: allow newlines in json (not sure if that's possible though), or use xml?
The text was updated successfully, but these errors were encountered: