Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement better non-collaborative identity #114

Merged
merged 4 commits into from
Apr 24, 2023
Merged

Conversation

dlqqq
Copy link
Member

@dlqqq dlqqq commented Apr 24, 2023

Description

Closes #75.

Uses getpass.getuser() to fill in the user's display name when collaborative mode is disabled, rather than relying on the IdentityProvider that produces a confusing "Anonymous XYZ" display name.

I also tested this locally with collaboration enabled to verify that there is no regression in the collaborative experience.

Demo

Screen Shot 2023-04-24 at 12 01 45 PM

@dlqqq dlqqq added the enhancement New feature or request label Apr 24, 2023
packages/jupyter-ai/jupyter_ai/handlers.py Outdated Show resolved Hide resolved
packages/jupyter-ai/jupyter_ai/models.py Outdated Show resolved Hide resolved
@dlqqq dlqqq merged commit 90849d1 into jupyterlab:main Apr 24, 2023
@dlqqq dlqqq deleted the identity branch April 24, 2023 22:28
dbelgrod pushed a commit to dbelgrod/jupyter-ai that referenced this pull request Jun 10, 2024
* better non-collaborative identity

* capitalize initial in avatar

* prefer getpass.getuser()

* edit client ID comment docs
Marchlak pushed a commit to Marchlak/jupyter-ai that referenced this pull request Oct 28, 2024
* better non-collaborative identity

* capitalize initial in avatar

* prefer getpass.getuser()

* edit client ID comment docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improvements to user identity
2 participants