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

Do not add default options to notebook metadata? #17

Closed
grst opened this issue Jul 18, 2018 · 1 comment
Closed

Do not add default options to notebook metadata? #17

grst opened this issue Jul 18, 2018 · 1 comment

Comments

@grst
Copy link
Contributor

grst commented Jul 18, 2018

When I create a new blank notebook,
the following default metadata are added to the notebook

nbrmd_formats": [
    ".ipynb",
    ".Rmd",
    ".py"
  ],
  "nbrmd_sourceonly_format": ".Rmd",

There are two issues with that

  1. They do not correspond to my default options. My jupyter config just contains these two lines:
c.NotebookApp.contents_manager_class = 'nbrmd.RmdFileContentsManager'
c.ContentsManager.default_nbrmd_formats = ['.ipynb', '.Rmd']
  1. I believe that these options should not be added to the metadata automatically in the first place.
  • If I set a certain default behaviour in the jupyter config, and, at some point decided to change that behaviour, I would have to edit the metadata of all notebooks manually.
  • Also, when working on a shared project, one of the collaborators might want to have a separate .ipynb file, and the other only .Rmd.
  • If a user wants a different behaviour only for a single notebook, he is free to add the options to the metadata manually.
@grst grst changed the title Do not add default options not notebook metadata? Do not add default options to notebook metadata? Jul 18, 2018
@mwouts
Copy link
Owner

mwouts commented Jul 18, 2018

Well, I think I can only agree! Thanks Gregor for your feedback. I'll fix this quickly.

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