Draft notebook templates#414
Conversation
jules32
left a comment
There was a problem hiding this comment.
Thanks Andy! Thanks for incorporating all the ideas from yesterday. I added a few comments here but think it's ready to talk through on Wednesday :)
Co-authored-by: Julia Stewart Lowndes <julia@openscapes.org>
|
Should an environment (ie corn, py-rocket?) be part of the metadata? Thinking if folks will download single notebooks with a button, would they need a link to an environment? |
* At least one of concept-id, short-name, doi
This is a good idea, I think since these metadata aren't exposed to the user (They don't show up in rendered content), do you think we should have a written section in the template, outside the metadata? |
|
I think this is close to being ready to merge at least so we can test it out? @asteiker @andypbarrett do you have thoughts on using the GCMD keywords? I can't access the wiki |
|
After coworking today, I wonder if we should narrow the scope of this PR to be just the main template body and the Quarto metadata, and move the NASA metadata/CMR integration discussion to a different issue/PR? Then we could get this merged with the basic template and start using it. What do you think @danielfromearth @michele-ornl @asteiker @andypbarrett @mikala-nsidc @alexishunzinger |
|
Yeah, sounds good to me. I do think it will be helpful to have the NASA-specific metadata discussed by itself. |
|
@danielfromearth thanks for the review! As discussed I've pulled out the NASA-specific metadata and just have the cookbook-focused core metadata. I've opened issues about the rest to add as we get more clarity about how they will be used |
This is a first attempt to add notebook templates, based on the draft style guide and cookbook coworking.
This serves several purposes:
These are lightly modified from the Project Pythia template, with Quarto metadata added at the top. I've added a
.qmdand.ipynbtemplate. For the.qmdtemplate, the metadata is in the yaml frontmatter, and for.ipynbit is in a raw cell at the beginning of the document.I think for diff-viewing and line-by-line review in this PR, the
.qmddocument is the easiest, but they are essentially the same content. So I think we should iterate on the.qmdand then copy to the.ipynbwhen ready.Note that the
nasa-metadatakey is just to hold metadata. It is a non-standard key (which Quarto allows) so we can provide that information in a structured way. Everything else is a standard key that Quarto uses in some way to control rendering or populate content.TODO:
Rendered versions of the templates are in the deploy preview: ipynb and qmd