how to get rid of jupytext_version in the notebook metadata
See original GitHub issueHey there
as the tile has it, my use case would require to get rid of jupytext_version
in my notebooks metadata
for some time I have been successfully running in a mode where language_info
is stripped from said notebook metadata (actually it’s kind of the same need, differences in the version numbers between the authoring laptop and the runtime testbed creates tend to create headaches 😉
so I have tried to tweak that same setting, but I can’t seem to find the correct wording; I have tried for example this :
notebook_metadata_filter: all,-language_info,-jupyter.jupytext.text_representation.jupytext_version
together with a few variants, but can’t seem to get it right; what am I doing wrong ?
– a jupytext lover 😃
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:12 (5 by maintainers)
Top Results From Across the Web
jupytext: how to get rid of jupytext_version in the notebook ...
to get rid of them. This got read of almost all the offending metadata with the exception of: kernelspec: display_name: Python 3 (ipykernel)....
Read more >Hide or remove content - Jupyter Book
To hide Markdown, use the {toggle} directive. To hide or remove code cells or their outputs, use notebook cell tags. We'll cover each...
Read more >5. Metadata Tags — ipypublish 0.10.12 documentation
For notebook level: in the Jupyter Notebook Toolbar go to Edit -> Edit Notebook Metadata. For cell level: in the Jupyter Notebook Toolbar...
Read more >How to Version Control Jupyter Notebooks - Nextjournal
Jupyter notebooks generate files that may contain metadata, source code, ... This removes any binary blobs that have been generated by the notebook....
Read more >Cell ID Addition to Notebook Format — Jupyter Enhancement ...
Out of scope for this proposal is an overall notebook id field. ... This change is not an addition to the cells' metadata...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
hi @mwouts, thanks for taking care of this
first thing I want to report is there is an extra
"
in your first snippet; then end should readinstead of
now, when I do run this on a sample notebook, which happens to be in
.md
format, I observe vast changes that are not what I expected; it does add the metadata filter, but otherwise removes a lot of global metadata; was that intended ?hi; me again 😉
I just realized that I had a setting in
~/.jupyter/notebook_config.py
because of its name I thought this setting would not affect the notebooks where I had explicitly defined the complete new value ending in
-jupytext.text_representation.jupytext_version
so, I cannot yet confirm that this was the root problem, but I did change the default to be in line with what I want, since any impact on all my other notebooks would not matter anyway
hopefully I will be able to confirm in a couple days, I just have too many instances of jupyter servers and notebooks open at that point to be able to be positive