# Converting to html and mantaining some of the Nbextensions in the output, html\_ch

**URL:** https://discourse.jupyter.org/t/converting-to-html-and-mantaining-some-of-the-nbextensions-in-the-output-html-ch/9164
**Category:** nbconvert
**Tags:** help-wanted
**Created:** [May 12, 2021, 4:09pm UTC](https://discourse.jupyter.org/t/converting-to-html-and-mantaining-some-of-the-nbextensions-in-the-output-html-ch/9164 "2021-05-12T16:09:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![notebookimprover](https://avatars.discourse-cdn.com/v4/letter/n/a88e4f/32.png) [@notebookimprover](https://discourse.jupyter.org/u/notebookimprover)
#### Post date: [May 12, 2021, 4:09pm UTC](https://discourse.jupyter.org/t/converting-to-html-and-mantaining-some-of-the-nbextensions-in-the-output-html-ch/9164/1 "2021-05-12T16:09:11Z")

</div>

First of all. I am not sure if this is the right place to ask, probably not but I am hoping I am not the only one in a situation that I believe should be very common to many here.

The problem: I am using Anaconda and I have installed the ‘jupyter\_contrib\_nbextensions’ package in normal Jupyter Notebooks via conda. The good thing that it does all work fine.  
Now, I want to keep some of the extension features also when using nbconvert to export to an html file. The read the docs for nbextensions does talk about it but if I am honest they seem very sparse and in any case I am getting some errors that I don’t understand and any help is appreciated.

I have made this very simple notebook and the only extension feature I would like to have when exporting to html is the collapsible headings. So I have tried the following:  
jupyter nbconvert --to html\_ch testexport.ipynb  
I get the following error:

> [NbConvertApp] WARNING | Config option `kernel_spec_manager_class` not recognized by `NbConvertApp`.  
> [NbConvertApp] Converting notebook testexport.ipynb to html\_ch  
> Traceback (most recent call last):  
> File “C:\Users\MyName\anaconda3\envs\mysqltest\Scripts\jupyter-nbconvert-script.py”, line 10, in   
> sys.exit(main())  
> File “C:\Users\MyName\anaconda3\envs\mysqltest\lib\site-packages\jupyter\_core\application.py”, line 254, in launch\_instance  
> return super(JupyterApp, cls).launch\_instance(argv=argv, \*\*kwargs)  
> File “C:\Users\MyName\anaconda3\envs\mysqltest\lib\site-packages\traitlets\config\application.py”, line 845, in launch\_instance  
> app.start()  
> File “C:\Users\MyName\anaconda3\envs\mysqltest\lib\site-packages\nbconvert\nbconvertapp.py”, line 350, in start  
> self.convert\_notebooks()  
> File “C:\Users\MyName\anaconda3\envs\mysqltest\lib\site-packages\nbconvert\nbconvertapp.py”, line 524, in convert\_notebooks  
> self.convert\_single\_notebook(notebook\_filename)  
> File “C:\Users\MyName\anaconda3\envs\mysqltest\lib\site-packages\nbconvert\nbconvertapp.py”, line 489, in convert\_single\_notebook  
> output, resources = self.export\_single\_notebook(notebook\_filename, resources, input\_buffer=input\_buffer)  
> File “C:\Users\MyName\anaconda3\envs\mysqltest\lib\site-packages\nbconvert\nbconvertapp.py”, line 418, in export\_single\_notebook  
> output, resources = self.exporter.from\_filename(notebook\_filename, resources=resources)  
> File “C:\Users\MyName\anaconda3\envs\mysqltest\lib\site-packages\nbconvert\exporters\exporter.py”, line 181, in from\_filename  
> return self.from\_file(f, resources=resources, \*\*kw)  
> File “C:\Users\MyName\anaconda3\envs\mysqltest\lib\site-packages\nbconvert\exporters\exporter.py”, line 199, in from\_file  
> return self.from\_notebook\_node(nbformat.read(file\_stream, as\_version=4), resources=resources, \*\*kw)  
> File “C:\Users\MyName\anaconda3\envs\mysqltest\lib\site-packages\jupyter\_contrib\_nbextensions\nbconvert\_support\exporter\_inliner.py”, line 32, in from\_notebook\_node  
> nb, resources, \*\*kw)  
> File “C:\Users\MyName\anaconda3\envs\mysqltest\lib\site-packages\nbconvert\exporters\html.py”, line 119, in from\_notebook\_node  
> return super().from\_notebook\_node(nb, resources, \*\*kw)  
> File “C:\Users\MyName\anaconda3\envs\mysqltest\lib\site-packages\nbconvert\exporters\templateexporter.py”, line 384, in from\_notebook\_node  
> output = self.template.render(nb=nb\_copy, resources=resources)  
> File “C:\Users\MyName\anaconda3\envs\mysqltest\lib\site-packages\nbconvert\exporters\templateexporter.py”, line 148, in template  
> self.\_template\_cached = self.\_load\_template()  
> File “C:\Users\MyName\anaconda3\envs\mysqltest\lib\site-packages\nbconvert\exporters\templateexporter.py”, line 355, in \_load\_template  
> return self.environment.get\_template(template\_file)  
> File “C:\Users\MyName\anaconda3\envs\mysqltest\lib\site-packages\jinja2\environment.py”, line 883, in get\_template  
> return self.\_load\_template(name, self.make\_globals(globals))  
> File “C:\Users\MyName\anaconda3\envs\mysqltest\lib\site-packages\jinja2\environment.py”, line 857, in \_load\_template  
> template = self.loader.load(self, name, globals)  
> File “C:\Users\MyName\anaconda3\envs\mysqltest\lib\site-packages\jinja2\loaders.py”, line 429, in load  
> raise TemplateNotFound(name)  
> jinja2.exceptions.TemplateNotFound: inliner  
> i have tried to look around but could not really find much. Also:

> jupyter --version  
> jupyter core : 4.7.1  
> jupyter-notebook : 6.3.0  
> qtconsole : not installed  
> ipython : 7.22.0  
> ipykernel : 5.3.4  
> jupyter client : 6.1.12  
> jupyter lab : not installed  
> nbconvert : 6.0.7  
> ipywidgets : not installed  
> nbformat : 5.1.3  
> traitlets : 5.0.5

Is it possible it is an issue with nbconvert? I would be really surprised if so. If I can give more information that is helpful to fix this I am here. It would really important for me, thanks.
