Several warning messages like the present are shown whenever I open any notebook from jupyter.
I have disabled jupyter_contrib_nbextensions and then uninstalled them.
In all cases, warnings are shown, like in:
[W 18:49:22.283 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: template_file, template_name, template_paths?
[W 18:49:22.293 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: template_file, template_name, template_paths?
[W 18:49:22.314 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: template_file, template_name, template_paths?
[W 18:49:22.324 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: template_file, template_name, template_paths?
[W 18:49:22.366 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: template_file, template_name, template_paths?
[W 18:49:22.371 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: template_file, template_name, template_paths?
[W 18:49:22.555 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: template_file, template_name, template_paths?
[W 18:49:22.562 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: template_file, template_name, template_paths?
[W 18:49:22.663 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: template_file, template_name, template_paths?
[W 18:49:22.673 NotebookApp] Config option template_path not recognized by LenvsHTMLExporter. Did you mean one of: template_file, template_name, template_paths?
[W 18:49:22.694 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: template_file, template_name, template_paths?
[W 18:49:22.704 NotebookApp] Config option template_path not recognized by LenvsTocHTMLExporter. Did you mean one of: template_file, template_name, template_paths?
[W 18:49:22.746 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: template_file, template_name, template_paths?
[W 18:49:22.752 NotebookApp] Config option template_path not recognized by LenvsLatexExporter. Did you mean one of: template_file, template_name, template_paths?
[W 18:49:22.911 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: template_file, template_name, template_paths?
[W 18:49:22.917 NotebookApp] Config option template_path not recognized by LenvsSlidesExporter. Did you mean one of: template_file, template_name, template_paths?
I forgot to mention that even after disabling and/or uninstalling, the warnings continue to show.
I have the exactly same problem.
While looking for possible causes, I found one thing:
conda install "nbconvert=5.6.1"template_path has become template_paths - maybe this can be related with the issueI forgot to mention that even after disabling and/or uninstalling, the warnings continue to show.
One more thing to add, that exports from menu File -> Export Notebook As... are also failing.
I forgot to mention that even after disabling and/or uninstalling, the warnings continue to show.
One more thing to add, that exports from menu
File -> Export Notebook As... are also failing.
I have the same issue. After several days to working the annoying problem, deleting and reinstalling, they wont go away. I found this thread when I wanted to open a new issue, so thanks guys for the work around.
Edit: it looks like @stefansimik already said this
I just figured this out.
It has to do with the fact that nbconvert 6.0 changed template_path to template_paths. Until this project changes that you should require nbconvert<6.
This fixed it for me.
I am not sure, where change should happen / what project should be updated...
I had the same error and downgrading nbconvert to 5.6.1 helped prevent these errors when running jupyter notebook.
HOWEVER, I am still having trouble with nbextensions. When I open a notebook that previously used to successfully have a table of contents, I am now getting an error:
404 GET /nbextensions/widgets/notebook/js/extension.js?v=20200928130405 (::1) 8.80ms referer=http://localhost:8889/notebooks/Figures.ipynb
(Figures.ipynb is the notebook I am trying to run).
And there is no longer a table of contents tab/option in the notebook (though the collapsible headings seem to be working).
I have searched around for a while now and still no success. Any ideas/help?
Thanks!
UPDATE: the table of contents does show up for a different notebook.
The notebook that it is not showing up in has been the one that I have been mainly using TOC (successfully) in until today.
I had the same error and downgrading nbconvert to 5.6.1 helped prevent these errors when running jupyter notebook.
HOWEVER, I am still having trouble with nbextensions. When I open a notebook that previously used to successfully have a table of contents, I am now getting an error:
404 GET /nbextensions/widgets/notebook/js/extension.js?v=20200928130405 (::1) 8.80ms referer=http://localhost:8889/notebooks/Figures.ipynb
(Figures.ipynb is the notebook I am trying to run).
And there is no longer a table of contents tab/option in the notebook (though the collapsible headings seem to be working).I have searched around for a while now and still no success. Any ideas/help?
Thanks!
UPDATE: the table of contents does show up for a different notebook.
The notebook that it is not showing up in has been the one that I have been mainly using TOC (successfully) in until today.
Just in my case - I can say, that TOC extension (https://github.com/jupyterlab/jupyterlab-toc) was working correctly all the time, i.e. even before downgrading nbconvert back to v5.6.1
That's why I am not sure, if problem in TOC is directly related to bad version of nbconvert ...
Yes, this issue is related to the change in Nbconvert that replaced 'template_path' with 'template_paths'.
Replacing all instances of 'template_path' with 'template_paths' in the extensions jupyter_latex_envs and jupyter_contrib_nbextensions fixes the error.
I opened pull requests with these changes:
https://github.com/jfbercher/jupyter_latex_envs/pull/58
https://github.com/ipython-contrib/jupyter_contrib_nbextensions/pull/1532
If you want to get rid of the error messages before the extensions update, install the extensions from my repos (or clone them) or just replace 'template_path' with 'template_paths' in the local folders of these extensions (in my case these extensions were in ~/miniconda3/lib/python3.8/site-packages/...)
Yes, this issue is related to the change in Nbconvert that replaced 'template_path' with 'template_paths'.
Replacing all instances of 'template_path' with 'template_paths' in the extensions jupyter_latex_envs and jupyter_contrib_nbextensions fixes the error.
I opened pull requests with these changes:
jfbercher/jupyter_latex_envs#581532
If you want to get rid of the error messages before the extensions update, install the extensions from my repos (or clone them) or just replace 'template_path' with 'template_paths' in the local folders of these extensions (in my case these extensions were in ~/miniconda3/lib/python3.8/site-packages/...)
How can I do the replace??
Yes, this issue is related to the change in Nbconvert that replaced 'template_path' with 'template_paths'.
Replacing all instances of 'template_path' with 'template_paths' in the extensions jupyter_latex_envs and jupyter_contrib_nbextensions fixes the error.
I opened pull requests with these changes:
jfbercher/jupyter_latex_envs#581532
If you want to get rid of the error messages before the extensions update, install the extensions from my repos (or clone them) or just replace 'template_path' with 'template_paths' in the local folders of these extensions (in my case these extensions were in ~/miniconda3/lib/python3.8/site-packages/...)
How can I do the replace??
If you want to manually replace all instances of 'template_path' in the files, you can use an editor such as Visual Studio Code or PyCharm. For example, in VS Code:
I have encountered the same problem. Has anyone solved it now?
Yes, this issue is related to the change in Nbconvert that replaced 'template_path' with 'template_paths'.
Replacing all instances of 'template_path' with 'template_paths' in the extensions jupyter_latex_envs and jupyter_contrib_nbextensions fixes the error.
I opened pull requests with these changes:
jfbercher/jupyter_latex_envs#581532
If you want to get rid of the error messages before the extensions update, install the extensions from my repos (or clone them) or just replace 'template_path' with 'template_paths' in the local folders of these extensions (in my case these extensions were in ~/miniconda3/lib/python3.8/site-packages/...)
Hopefully this pull request can be merged soon - I do have the same problem.
我有完全一样的问题。
在寻找可能的原因时,我发现了一件事:
当我从nbconvert 6.0.3降级到5.6.1时,问题消失了-警告消失了,导出又开始工作了
- 用
conda install "nbconvert=5.6.1"这可能意味着nbconvert> = 6.00发生了重大变化-参见此处:https ://nbconvert.readthedocs.io/en/latest/changelog.html#significant-changes
- 一个特别有趣的是:
template_path has become template_paths-也许这可能与问题有关
Hello, I did not solve my problem according to your operation. Is there any other way?
是的,此问题与Nbconvert中将“ template_paths”替换为“ template_paths”的更改有关。
将扩展名jupyter_latex_envs和jupyter_contrib_nbextensions中的'template_paths'替换为'template_paths'的所有实例可修复该错误。
我通过以下更改打开了请求请求:
jfbercher / jupyter_latex_envs#58
#1532
如果要在扩展程序更新之前消除错误消息,请从我的存储库中安装扩展程序(或克隆它们),或者在这些扩展程序的本地文件夹中将“ template_paths”替换为“ template_paths”(在我的情况下,这些扩展名是在〜/ miniconda3 / lib / python3.8 / site-packages / ...)希望这个拉取请求可以很快合并-我确实有同样的问题。
I solved this problem.First, run pip uninstall nbconvert in Anaconda prompt, and then run conda install "nbconvert = 5.6.1" to solve this problem perfectly!
I solved this problem.First, run pip uninstall nbconvert in Anaconda prompt, and then run conda install "nbconvert = 5.6.1" to solve this problem perfectly!
@outsider-duwen you've downgraded your local version of nbconvert back to 5.6.1.
But is this really the only option to solve that?
If I understood it correct a fix is waiting to be deployed:
I opened pull requests with these changes:
jfbercher/jupyter_latex_envs#58
I solved this problem.First, run pip uninstall nbconvert in Anaconda prompt, and then run conda install "nbconvert = 5.6.1" to solve this problem perfectly!
@outsider-duwen you've downgraded your local version of nbconvert back to 5.6.1.
But is this really the only option to solve that?If I understood it correct a fix is waiting to be deployed:
I opened pull requests with these changes:
jfbercher/jupyter_latex_envs#581532
I don't think this is the only solution. I hope you can solve it perfectly. After this bug is fixed, I will try other methods.
Current status of this issue - 2020-10-26
We are waiting for changes in CI configuration:
.travis.yml should include tests for Python 3.7 and 3.8 and drop older testsSo how to solve this issue?
So how to solve this issue?
conda install "nbconvert=5.6.1"
Yep, or pip install "nbconvert<6"
Because I wasn't using the jupyter-latex-envs extension anyway, I ran pip uninstall jupyter-latex-envs to remove those warnings.
pip uninstall jupyter-latex-envs
Found existing installation: jupyter-latex-envs 1.4.6
Uninstalling jupyter-latex-envs-1.4.6:
Would remove:
/home/ryoung/anaconda3/lib/python3.7/site-packages/jupyter_latex_envs-1.4.6.dist-info/*
/home/ryoung/anaconda3/lib/python3.7/site-packages/latex_envs/*
Proceed (y/n)? y
Successfully uninstalled jupyter-latex-envs-1.4.6
I found the easiest solution for now was to run:
jupyter notebook --log-level=40
which suppresses warnings, for good or ill.
Most helpful comment
I have the exactly same problem.
While looking for possible causes, I found one thing:
conda install "nbconvert=5.6.1"template_path has become template_paths- maybe this can be related with the issue