-
Notifications
You must be signed in to change notification settings - Fork 392
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
Loading Jupytext configuration file messages #959
Comments
I thought about disabling the serverextension globally and having users opt in, but I find that I can't seem to disable it. Either that or it still loads the config file when it's disabled? When I do
When starting up the notebook server I still see it loading the config. Doing |
Hi @rcthomas , I have been working on a new option that should reduce very significantly the number of log lines regarding the config file. Would you like to give a try to the development version with e.g. this command? Thanks
|
The PR #963 is ready - on the way I've had to handle the new |
Hi @mwouts thanks for looking into this, I've given it a go with a non-hidden config file. What I see now is that there is just the first loading configuration message, and no further ones. Thanks very much, this addresses the issue! I looked at the PR and was a little surprised at what you're actually checking for as a change though --- if I read correctly you're looking at the config file name, not the config file metadata or the content. Is that what you really want to do (base the "change" on the filename itself and not the config content)? I could be reading that wrong but I don't think I am. In any case this definitely helps cut down on the extra log messages, thank you again. |
In principle yes, but I just tested and that change seems to bring back the old behavior even when the config file and its contents go unmodified. The comparison |
Thanks @rcthomas for testing! Oh yes sure I should have taken |
I've added the missing |
I believe that did it! I tested changing the config live, and I only see the configuration loaded message when it's changed. Thank you so much for addressing this! |
Excellent! Thank you @rcthomas for testing this thoughtfully on your end, this is a very precious contribution. I'll integrate this in the next release (probably |
I have a few notebooks open in JupyterLab with Jupytext 1.13.8, and I am noticing that about every 13 seconds it prints out about 10 times a message like:
This is pretty verbose, for me it adds about 1 MB of redundant output in 2 hours without really interacting with the notebooks. I've seen the previous discussions on issues and PRs where this has been brought up, so I understand that the idea is that it's good to let users know when a config file has been loaded. But I think the content being communicated here is most useful at debug level, and an info-level message would be something like "I've read the config and it's changed from the previous time it was loaded."
Or, is it possible I've got something configured wrong or another extension I have loaded is causing an increased frequency of these messages? Thanks!
The text was updated successfully, but these errors were encountered: