-
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
freeze_metadata and ipynb files #124
Comments
Hello @kiendang , thanks for reporting this. With Jupytext 0.8.4 (current version) if you do not want any metadata in your scripts, you should indeed use The purpose of the The By the way: I note that the implementation currently overrides the |
- badges moved to specialized sections - new section on per notebook and global configuration #124
Hello @kiendang , I have updated the documentation for the next release. Do you think the new section on configuration , where I explain the difference between |
Thanks for taking the time to do this.
c.ContentsManager.default_notebook_metadata_filter = "-all"
c.ContentsManager.default_cell_metadata_filter = "-all" and
c.ContentsManager.freeze_metadata = True Does it mean that when I use a script which already has some metadata, if I use the former, those metadata will be cleared out, but if I use the later, they will be preserved, and no other metadata will be added? And if I create a new R or python text file, the results would be the same for either approach? |
More emphasis on the difference between 'freeze_metadata' and notebook metadata filter #124
You're welcome! Thanks for reviewing the doc, and for your feedback.
Yes, it does!
It depends:
The reason why I introduced the Can you tell me which config you use, in the end? Probably just the metadata filter? One more question: do you think the |
(sorry the close was not intentional) |
github automation's gone too far :)) Thanks for explaining how I submitted a pull request modifying the doc a bit. I think it's useful to keep the example of hand-picked metadata filtering. Also I think describing Let me know what you think. |
For my original use case (I don't want to keep any metadata) I use |
Thanks @kiendang for your feedback, and also for the PR. I will review it and integrate it tonight.
Good! I think I also would. I will set that option for my own use and test, and if there is not drawback of doing so, I may integrate that in the next release. |
- badges moved to specialized sections - new section on per notebook and global configuration #124
More emphasis on the difference between 'freeze_metadata' and notebook metadata filter #124
Former option freeze_metadata was removed. Now, opening a text document with no jupyter metadata always creates a metadata filter in the notebook. #124
When the text file has no jupytext metadata #124
Former option freeze_metadata was removed. Now, opening a text document with no jupyter metadata always creates a metadata filter in the notebook. #124
When the text file has no jupytext metadata #124
Hello again @kiendang , can you tell me if the RC solves the issue? Note that you will have to surppress the |
I expect this to be fixed in the RC (now at 1.0.0-rc2):
@kiendang, please reopen if you see any issue. Thanks. |
My understanding is that
is equivalent to
However, when using the later, when create a new
ipynb
file,metadata_filter
is setwhile if using the former,
metadata_filter
is not setThis leads to some confusing behavior when setting
c.ContentsManager.freeze_metadata = True
and creating a paired notebook from aipynb
file.i.e If I set
c.ContentsManager.freeze_metadata = True
then create a.ipynb
file, e.g with 1 cellimport functools
, then create a paired notebook by adding"formats": "ipynb,py"
I would expect the corresponding.py
file would be justinstead I get
This does not happen if I use
or create the
py
file first.The text was updated successfully, but these errors were encountered: