Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 8, 2024
1 parent 16f39ec commit fd7833e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jupyter-ai/jupyter_ai/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ def get_chat_user(self) -> ChatUser:
"""Retrieves the current user. If `jupyter_collaboration` is not
installed, one is synthesized from the server's current shell
environment."""
# Get a dictionary of all loaded extensions.
# Get a dictionary of all loaded extensions.
# (`serverapp` is a property on all `JupyterHandler` subclasses)
extensions = self.serverapp.extension_manager.extensions
collaborative = (
"jupyter_collaboration" in extensions
and extensions["jupyter_collaboration"].enabled
)

if collaborative:
names = self.current_user.name.split(" ", maxsplit=2)
initials = getattr(self.current_user, "initials", None)
Expand Down

0 comments on commit fd7833e

Please sign in to comment.