diff --git a/nbconvert/exporters/templateexporter.py b/nbconvert/exporters/templateexporter.py index a4aeb5889..fe8d262c9 100644 --- a/nbconvert/exporters/templateexporter.py +++ b/nbconvert/exporters/templateexporter.py @@ -640,6 +640,10 @@ def get_prefix_root_dirs(self): root_dirs = [] if DEV_MODE: root_dirs.append(os.path.abspath(os.path.join(ROOT, "..", "..", "share", "jupyter"))) + # Add a path relative to jupyter root directory, for modules installed in external folders + root_dirs.append( + os.path.abspath(os.path.join(ROOT, "..", "..", "..", "..", "share", "jupyter")) + ) root_dirs.extend(jupyter_path()) return root_dirs