We've had many discussions on how we should handle dependencies, but given that we currently only include absolutely essential packages as core dependencies, I was wondering why we include jinja2. In my opinion, it would be better (more consistent) to make it an optional dependency. In addition, it is only imported in one location (mne/html_templates/_templates.py), and even there it is a nested import.
We've had many discussions on how we should handle dependencies, but given that we currently only include absolutely essential packages as core dependencies, I was wondering why we include
jinja2. In my opinion, it would be better (more consistent) to make it an optional dependency. In addition, it is only imported in one location (mne/html_templates/_templates.py), and even there it is a nested import.