Skip to content

Commit

Permalink
Expose extension so jupyter server can find them
Browse files Browse the repository at this point in the history
  • Loading branch information
tmetzl committed Aug 14, 2023
1 parent d28a2d9 commit 2cfcd06
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions e2xgrader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@
import os
from os.path import join as pjoin

from .server_extensions.student import (
_load_jupyter_server_extension as load_student_extension,
)
from .server_extensions.student_exam import (
_load_jupyter_server_extension as load_student_exam_extension,
)
from .server_extensions.teacher import (
_load_jupyter_server_extension as load_teacher_extension,
)


def _jupyter_nbextension_paths():
root = os.path.dirname(__file__)
Expand Down Expand Up @@ -36,3 +46,13 @@ def _jupyter_server_extension_paths():
]

return paths


def _jupyter_server_extension_points():
return [dict(module="e2xgrader")]


def _load_jupyter_server_extension(app):
load_student_extension(app)
load_student_exam_extension(app)
load_teacher_extension(app)

0 comments on commit 2cfcd06

Please sign in to comment.