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

many warnings about Config option template_path not recognized by #5768

Closed
joernhees opened this issue Sep 23, 2020 · 5 comments
Closed

many warnings about Config option template_path not recognized by #5768

joernhees opened this issue Sep 23, 2020 · 5 comments

Comments

@joernhees
Copy link

after a recent upgrade, whenever i open a notebook i am spammed with warnings on the terminal from which i started jupyter notebook:

[W 20:50:51.674 NotebookApp] Config option `template_path` not recognized by `ExporterCollapsibleHeadings`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:51.698 NotebookApp] Config option `template_path` not recognized by `ExporterCollapsibleHeadings`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:51.867 NotebookApp] Config option `template_path` not recognized by `TocExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:51.886 NotebookApp] Config option `template_path` not recognized by `TocExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:51.983 NotebookApp] Config option `template_path` not recognized by `LenvsHTMLExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:52.000 NotebookApp] Config option `template_path` not recognized by `LenvsHTMLExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:52.092 NotebookApp] Config option `template_path` not recognized by `LenvsTocHTMLExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:52.119 NotebookApp] Config option `template_path` not recognized by `LenvsTocHTMLExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:52.333 NotebookApp] Config option `template_path` not recognized by `LenvsLatexExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:52.355 NotebookApp] Config option `template_path` not recognized by `LenvsLatexExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:53.216 NotebookApp] Config option `template_path` not recognized by `LenvsSlidesExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:53.243 NotebookApp] Config option `template_path` not recognized by `LenvsSlidesExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:53.944 NotebookApp] Config option `template_path` not recognized by `ExporterCollapsibleHeadings`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:53.973 NotebookApp] Config option `template_path` not recognized by `ExporterCollapsibleHeadings`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:54.241 NotebookApp] Config option `template_path` not recognized by `TocExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:54.260 NotebookApp] Config option `template_path` not recognized by `TocExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:54.356 NotebookApp] Config option `template_path` not recognized by `LenvsHTMLExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:54.378 NotebookApp] Config option `template_path` not recognized by `LenvsHTMLExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:54.513 NotebookApp] Config option `template_path` not recognized by `LenvsTocHTMLExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:54.551 NotebookApp] Config option `template_path` not recognized by `LenvsTocHTMLExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:54.814 NotebookApp] Config option `template_path` not recognized by `LenvsLatexExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:54.837 NotebookApp] Config option `template_path` not recognized by `LenvsLatexExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:55.806 NotebookApp] Config option `template_path` not recognized by `LenvsSlidesExporter`.  Did you mean one of: `template_file, template_name, template_paths`?
[W 20:50:55.834 NotebookApp] Config option `template_path` not recognized by `LenvsSlidesExporter`.  Did you mean one of: `template_file, template_name, template_paths`?

My guess is that some config option template_path was changed to template_paths in some project, but not (yet?) adapted in a related... maybe this has to do with some of the extensions i'm using, but even removing ~/.jupyter and reinstalling them with the following didn't help:

jupyter contrib nbextension install --user
jupyter nbextensions_configurator enable --user
jupyter nbextension enable toc2/main
jupyter nbextension enable collapsible_headings/main
jupyter nbextension enable highlight_selected_word/main
jupyter nbextension enable execute_time/ExecuteTime

The only mention of template_path i can find is in ~/.jupyter/jupyter_nbconvert_config.json, but changing that to template_paths and restarting jupyter doesn't solve the problem either.

Any ideas where to look?

version info
bash-kernel==0.7.2
ipykernel==5.3.4
ipyparallel==6.3.0
ipython==7.18.1
ipython-genutils==0.2.0
ipywidgets==7.5.1
jupyter==1.0.0
jupyter-client==6.1.7
jupyter-console==6.2.0
jupyter-contrib-core==0.3.3
jupyter-contrib-nbextensions==0.5.1
jupyter-core==4.6.3
jupyter-highlight-selected-word==0.2.0
jupyter-latex-envs==1.4.6
jupyter-nbextensions-configurator==0.4.1
jupyterlab==2.2.8
jupyterlab-pygments==0.1.1
jupyterlab-server==1.2.0
nbclient==0.5.0
nbconvert==6.0.6
nbformat==5.0.7
notebook==6.1.4
widgetsnbextension==3.5.1
@kevin-bates
Copy link
Member

Looks like template_path was renamed to template_paths by this nbconvert PR which appears in nbconvert 6.0. Seems like renaming template_path to its plural form is the correct change to make (as shown in this more recent PR), so I would suggest opening this issue in nbconvert.

@kevin-bates
Copy link
Member

I'm going to close this issue. If we find that there's some kind of change needed in this repo, we will be happy to reopen it at that time.

@neurologic
Copy link

I am getting this same error. Does not seem like an nbconvert thing, but rather an nbextensions thing?

@kevin-bates
Copy link
Member

Good point - thanks for the hint @neurologic.

Looks like a number of the exporters in jupyter_contrib_nbextensions reference the template_path trait of nbconvert. I suspect these warnings are visible if one has installed jupyter_contrib_nbextensions and would suggest the issue be opened in that repo - and, in fact, see that an issue already exists.

@neurologic
Copy link

neurologic commented Sep 28, 2020 via email

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

No branches or pull requests

3 participants