Skip to content

Conversation

maartenbreddels
Copy link
Contributor

This is a followup of #3116.
When the config manager reads the .json + .d/*.json files, all the data gets merged into one dict. When writted out again, everything ends on in the root .json file. Here I remove all entries that are already present in the .d/*.json files.

For instance, when installing ipyvolume, you end up with the file {prefix}/etc/jupyter/nbconfig/notebook.d/ipyvolume.json. If you now run jupyter nbextension ... for anything, all the data from the ipyvolume.json file ends up in {prefix}/etc/jupyter/nbconfig/notebook.d. Uninstalling ipyvolume will never clean this up, so it will always stay around. This is now avoided by this PR.

@maartenbreddels maartenbreddels changed the title ConfigManager does not write out default values found in the .d directory ConfigManager should not write out default values found in the .d directory Mar 30, 2018
@takluyver takluyver added this to the 5.5 milestone May 1, 2018
@takluyver takluyver merged commit 85b60e2 into jupyter:master May 1, 2018
@takluyver
Copy link
Member

Thanks

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants