Skip to content

Commit

Permalink
add jupyter extensions to userprofile handler
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders committed Nov 1, 2024
1 parent def8d01 commit a638895
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cylc/uiserver/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,13 @@ def get(self):
user_info['mode'] = 'single user'
else:
user_info['mode'] = 'multi user'

user_info['extensions'] = {
y.name: y.default_url
for x in self.serverapp.extension_manager.extension_apps.values()
for y in x if getattr(y, 'default_url', '/') != '/'
}

self.write(json.dumps(user_info))


Expand Down

0 comments on commit a638895

Please sign in to comment.