-
Notifications
You must be signed in to change notification settings - Fork 386
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
Add option to Ignore certain cells metadata #106
Comments
Thanks @andrethrill . I like both the most effort and the less effort approach! In the present case I also think that Maybe we should even ask the opposite question: which cell metadata are relevant in the text representation? For people using R Markdown, I think the relevant metadata is the one they input manually: figure size, should code or outputs be included, etc... From your previous example at #101 , the Finally, let's think to how the user could configure his preferences for metadata (see also #105)...
|
Thanks @mwouts !
This is a good point. Personally, as I get more familiar with Jupytext the way I see it being more useful in my workflow would be to ideally stop versioning control the Here, 'fully' means up to the metadata that the user would choose to be of interest. Hence my point of giving such config option to the user.
The
That seems reasonable to me. But see my comment below:
Good point! I didn't think about that. Still, I feel it to be a bit cumbersome to have to specify these details for every new notebook the user creates. I believe that each user may have different configs, but each user will very likely adopt the same configs across most of his/her notebooks. What do you think about this instead:
This way the user has the option to personalize (add or remove specific metadata, without the - or + signs) it on a per-notebook basis. But, by default, all user notebooks assume the config the user previously defined globally. |
Available in v0.8.4 - see the corresponding entry in the README. |
@mwouts I had the chance to give it a try now. I think the documentation is clear. And usability wise seems to behave as expected. Thank you! |
I like to use NBExtensions Execute Time extension.
When using jupytext, a cell will be converted to
.py
as:It can be seen that it has a
ExecuteTime
metadata.Would it be possible for the
jupytext
user to specify which metadata to keep track of and which to ignore?In my case I don't need this info in the
.py
and, in fact, I don't want it because it adds noise togit diff
...But maybe other users would like to keep it in the scripts.
Please let me know your thoughts.
@mwouts comment from the discussion started on #101 :
Regarding your comment @mwouts , I don't see a need to specify which metadata to ignore on a per notebook basis.
The text was updated successfully, but these errors were encountered: