mapbox / mapbox/mapboxgl-jupyter

TemplateNotFound in conda environment

Open
#163 7 comments 1 reaction 0 assignees View on GitHub
question
Dominant language
Python
Stars
681
Forks
137
PR merge metrics
No merged PRs in 30d

Description

I am trying to run the example Jupyter Notebook in
`../master/examples/notebooks/scale-annotation.ipynb`

I've set up my environment with conda:
`conda install -c conda-forge mapboxgl`

The file paths I've tested:

1. relative path

```
--mapboxgl-jupyter
----scale-annotation.ipynb
----data
------healthcare_points.geojson
----templates
------circle.html
```

2. up directory path

```
--mapboxgl-jupyter
----scale-annotation.ipynb
--data
----healthcare_points.geojson
--templates
----circle.html
```

3. local

```
--mapboxgl-jupyter
----scale-annotation.ipynb
----healthcare_points.geojson
----circle.html
```

All of these give me:

```bash
~/miniconda3/envs/jupyter_env/lib/python3.6/site-packages/jinja2/loaders.py in load(self, environment, name, globals)
111 # first we try to get the source for this template together
112 # with the filename and the uptodate function.
--> 113 source, filename, uptodate = self.get_source(environment, name)
114
115 # try to load the code from the bytecode cache if there is a

~/miniconda3/envs/jupyter_env/lib/python3.6/site-packages/jinja2/loaders.py in get_source(self, environment, template)
233 p = '/'.join((self.package_path,) + tuple(pieces))
234 if not self.provider.has_resource(p):
--> 235 raise TemplateNotFound(template)
236
237 filename = uptodate = None

TemplateNotFound: circle.html
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure using examples/notebooks/scale-annotation.ipynb and the conda-forge mapboxgl installation, focusing on the missing templates/circle.html resource and the Jinja2 TemplateNotFound traceback. Compare the listed relative, parent-directory, and local layouts. Done means the example notebook runs without the TemplateNotFound error in the reported environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.