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

TemplateNotFound error with JupyterLab 4.1.6 notebooks #1465

Open
neelasha23 opened this issue Apr 23, 2024 · 0 comments
Open

TemplateNotFound error with JupyterLab 4.1.6 notebooks #1465

neelasha23 opened this issue Apr 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@neelasha23
Copy link

Description

When running voila app.ipynb on notebooks generated with JupyterLab 4.1.6 (latest version) I get this error:

  File "/Users/neelashasen/Dev/doc/examples/voila/docker-based/env2/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 380, in _load_template
    return self.environment.get_template(template_file)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/neelashasen/Dev/doc/examples/voila/docker-based/env2/lib/python3.11/site-packages/jinja2/environment.py", line 1010, in get_template
    return self._load_template(name, globals)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/neelashasen/Dev/doc/examples/voila/docker-based/env2/lib/python3.11/site-packages/jinja2/environment.py", line 969, in _load_template
    template = self.loader.load(self, name, self.make_globals(globals))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/neelashasen/Dev/doc/examples/voila/docker-based/env2/lib/python3.11/site-packages/jinja2/loaders.py", line 575, in load
    raise TemplateNotFound(name)
jinja2.exceptions.TemplateNotFound: index.html.j2

Reproduce

  1. Created a clean virtual environment.
  2. Installed latest versions of voila and jupyterlab.
  3. Create a simple notebook with below code:

iris = pd.read_csv('https://raw.githubusercontent.com/mwaskom/seaborn-data/master/iris.csv')
iris
  1. Run voila app.ipynb

Repeated the same steps with a notebook generated with JupyterLab 4.0.0 and didn't face this issue

Expected behavior

No error

Context

  • voila version : 0.5.6
  • Operating System and version: Mac M1
  • Browser and version: Google Chrome
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here.
You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `voila` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here.

If using JupyterLab

  • JupyterLab version: 4.1.6
Installed Labextensions
Paste the output from your command line running `jupyter labextension list`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant