jupyter_latex_envs
jupyter_latex_envs copied to clipboard
Undefined Error: no attribute 'latex_envs'
Followed installation in README.md and encountered the error below. Running jupyter core: 4.6.3. I attempted installation on macOS and Linux and both give the same error, appreciate the help in advance!
$ jupyter nbconvert --to html_with_lenvs MYFILE.ipynb
[NbConvertApp] Converting notebook Interactive Manuscript.ipynb to html_with_lenvs
Traceback (most recent call last):
File "/opt/anaconda3/bin/jupyter-nbconvert", line 11, in <module>
sys.exit(main())
File "/opt/anaconda3/lib/python3.8/site-packages/jupyter_core/application.py", line 270, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/application.py", line 664, in launch_instance
app.start()
File "/opt/anaconda3/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 340, in start
self.convert_notebooks()
File "/opt/anaconda3/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 510, in convert_notebooks
self.convert_single_notebook(notebook_filename)
File "/opt/anaconda3/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 481, in convert_single_notebook
output, resources = self.export_single_notebook(notebook_filename, resources, input_buffer=input_buffer)
File "/opt/anaconda3/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 410, in export_single_notebook
output, resources = self.exporter.from_filename(notebook_filename, resources=resources)
File "/opt/anaconda3/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 179, in from_filename
return self.from_file(f, resources=resources, **kw)
File "/opt/anaconda3/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 197, in from_file
return self.from_notebook_node(nbformat.read(file_stream, as_version=4), resources=resources, **kw)
File "/opt/anaconda3/lib/python3.8/site-packages/latex_envs/latex_envs.py", line 326, in from_notebook_node
output, resources = super(LenvsHTMLExporter,
File "/opt/anaconda3/lib/python3.8/site-packages/nbconvert/exporters/html.py", line 95, in from_notebook_node
return super(HTMLExporter, self).from_notebook_node(nb, resources, **kw)
File "/opt/anaconda3/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 322, in from_notebook_node
output = self.template.render(nb=nb_copy, resources=resources)
File "/opt/anaconda3/lib/python3.8/site-packages/jinja2/environment.py", line 1090, in render
self.environment.handle_exception()
File "/opt/anaconda3/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/opt/anaconda3/lib/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "/opt/anaconda3/lib/python3.8/site-packages/latex_envs/templates/latex_envs.tpl", line 1, in top-level template code
{%- extends 'full.tpl' -%}
File "/opt/anaconda3/lib/python3.8/site-packages/nbconvert/exporters/../templates/html/full.tpl", line 2, in top-level template code
{% from 'mathjax.tpl' import mathjax %}
File "/opt/anaconda3/lib/python3.8/site-packages/nbconvert/exporters/../templates/html/basic.tpl", line 2, in top-level template code
{% from 'celltags.tpl' import celltags %}
File "/opt/anaconda3/lib/python3.8/site-packages/nbconvert/exporters/../templates/skeleton/display_priority.tpl", line 1, in top-level template code
{%- extends 'null.tpl' -%}
File "/opt/anaconda3/lib/python3.8/site-packages/nbconvert/exporters/../templates/skeleton/null.tpl", line 24, in top-level template code
{%- block header -%}
File "/opt/anaconda3/lib/python3.8/site-packages/nbconvert/exporters/../templates/html/full.tpl", line 9, in block "header"
{%- block html_head -%}
File "/opt/anaconda3/lib/python3.8/site-packages/latex_envs/templates/latex_envs.tpl", line 13, in block "html_head"
{% if nb['metadata']['latex_envs']['eqLabelWithNumbers'] == True %}
File "/opt/anaconda3/lib/python3.8/site-packages/jinja2/environment.py", line 452, in getitem
return obj[argument]
jinja2.exceptions.UndefinedError: 'nbformat.notebooknode.NotebookNode object' has no attribute 'latex_envs'