mwouts / jupytext

Jupyter Notebooks as Markdown Documents, Julia, Python or R scripts
https://jupytext.readthedocs.io
MIT License
6.65k stars 386 forks source link

default (jupytext) settings for newly created notebooks #1096

Closed parmentelat closed 1 year ago

parmentelat commented 1 year ago

a bit along the lines of #1095

I would propose to allow a user to define their default jupytext settings for me I'm using a standardized but convoluted combo that aims at keeping the text unchanged across version numbers, and to avoid massive false changes that may happen when a notebook gets distributed to others, so for example

jupytext:
  cell_metadata_filter: all,-hidden,-heading_collapsed,-run_control,-trusted
  notebook_metadata_filter: all, -jupytext.text_representation.jupytext_version, -jupytext.text_representation.format_version,
    -language_info.version, -language_info.codemirror_mode.version, -language_info.codemirror_mode,
    -language_info.file_extension, -language_info.mimetype, -toc

and it would be a relief to either

probably very low priority, but I thought I'd write that down while I was at it

mwouts commented 1 year ago

Hey @parmentelat , for this one I think that the option exists. Is the new section on advanced options helpful? (I hope to deliver the new version of the documentation soon)

parmentelat commented 1 year ago

oh, I was not aware !

your link appears to be broken - probably due to some sort of bug on github ? gh-broken-link

I checked the advanced options in the current documentation, and would indeed be eager to read the WIP about this sort of things again this is far from critical and I was only mentioning as a corollary of the "new jupytext notebook" mentioned in #1095

mwouts commented 1 year ago

Thanks @parmentelat . Well, the link is broken as I merged the docs refactoring yesterday evening. So you're correct the place to read about this is the advanced options section in the documentation.

parmentelat commented 1 year ago

thank you for this tip, this is going to help :) as an aside, I can see the ~/.jupyter/ folder is not among the places where the config file is looked for, this is where I would have liked to put it; but never mind, I'm closing this

parmentelat commented 1 year ago

I have created a github support ticket to report the odd behaviour of this repo under github not sure if this is readable by all, but for the record the ticket is here https://support.github.com/ticket/personal/0/2236210

I expect gh may look further into that, it is nothing serious anyway