Skip to content

Commit

Permalink
Read server extensions from correct config
Browse files Browse the repository at this point in the history
  • Loading branch information
tmetzl committed Oct 23, 2024
1 parent a579bf7 commit e728e90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2xgrader/utils/mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def get_serverextension_config() -> Dict[str, bool]:
config = dict()
for path in jupyter_config_path():
contextmanager = get_notebook_config_manager()(config_dir=path)
config.update(contextmanager.get("jupyter_notebook_config"))
return config.get("NotebookApp", dict()).get("nbserver_extensions", dict())
config.update(contextmanager.get("jupyter_server_config"))
return config.get("ServerApp", dict()).get("jpserver_extensions", dict())


def infer_serverextension_mode() -> str:
Expand Down

0 comments on commit e728e90

Please sign in to comment.