nbformat
nbformat copied to clipboard
docs for metadata need updating
I'll get to this within the week.
Specifically, they don't currently mention language_info
(there may well be other problems too, but that's one omission I've noticed)
Docs list a "deletable" field, but this isn't implemented.
I see code in the notebook UI that checks deletable. There's nothing to implement for it in nbformat.
But surely it should be in the schema JSON right ? Maybe I'm just misunderstanding the purpose of this repo.
I don't think the schema includes keys in metadata, because the ones we use don't have to be there, and arbitrary ones we don't use are allowed there. It's essentially a free key-value store, but the docs describe a few fields that Jupyter applications use.
@takluyver kinda makes sense to me, but also seems to contradict what is in the schema since some metadata fields are included. For instance, for code cells "scrolled" and "collapsed" are included. I guess if these are mandatory fields, I can understand the logic, but I don't think that's the case; I have valid notebooks generated by Jupyter which do not have the "scrolled" field.
Also, docs list it as "autoscroll" whereas schema and Jupyter use "scrolled"
Oh, you're right. Thanks! I don't look at the schemas very often...
How's this now?