When this extension is run by a single user without collaboration model enables in JupyterLab, it is a bit confusing to see the anonymous planet name for yourself. I was thinking of how we can improve this for the user and attempt to use their real name or username. It looks like os.getlogin() can return this information. This would probably be an upstream contribution to JupyterLab itself though, but I think it would really help the user experience for single users.
When this is run in collaboration mode, I think it would be helpful to show the user which user they are in the chat, so instead of showing something like "Anonymous Callisto" show "Anonymous Callisto (me)" for just your username. I think the awareness API of JupyterLab can be to see if the user in the current user.
When this extension is run by a single user without collaboration model enables in JupyterLab, it is a bit confusing to see the anonymous planet name for yourself. I was thinking of how we can improve this for the user and attempt to use their real name or username. It looks like
os.getlogin()
can return this information. This would probably be an upstream contribution to JupyterLab itself though, but I think it would really help the user experience for single users.When this is run in collaboration mode, I think it would be helpful to show the user which user they are in the chat, so instead of showing something like "Anonymous Callisto" show "Anonymous Callisto (me)" for just your username. I think the awareness API of JupyterLab can be to see if the user in the current user.