Skip to content
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

default (jupytext) settings for newly created notebooks #1096

Closed
parmentelat opened this issue Jul 3, 2023 · 5 comments
Closed

default (jupytext) settings for newly created notebooks #1096

parmentelat opened this issue Jul 3, 2023 · 5 comments

Comments

@parmentelat
Copy link
Contributor

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

  • be sure that all the newly created (text) notebooks have these settings
  • be able to occasionally enforce these settings on notebooks produced elsewhere

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

@mwouts
Copy link
Owner

mwouts commented Jul 3, 2023

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
Copy link
Contributor Author

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
Copy link
Owner

mwouts commented Jul 4, 2023

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants