diff --git a/packages/jupyter-ai/jupyter_ai/handlers.py b/packages/jupyter-ai/jupyter_ai/handlers.py index 6b46dbb4e..6002310ba 100644 --- a/packages/jupyter-ai/jupyter_ai/handlers.py +++ b/packages/jupyter-ai/jupyter_ai/handlers.py @@ -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)