fix(ui): improve NotImplementedError messages in RemoteWorkspace#1868
Open
anirudhaacharyap wants to merge 3 commits intoevidentlyai:mainfrom
Open
fix(ui): improve NotImplementedError messages in RemoteWorkspace#1868anirudhaacharyap wants to merge 3 commits intoevidentlyai:mainfrom
anirudhaacharyap wants to merge 3 commits intoevidentlyai:mainfrom
Conversation
|
📚 Artifacts deployed to GitHub Pages: https://evidentlyai.github.io/evidently/ci/#pr-1868-fix-remote-workspace-error-msg |
Liraim
requested changes
May 2, 2026
Collaborator
Liraim
left a comment
There was a problem hiding this comment.
Hi, thank you for your contribution and interest in the project.
The changes look good overall, but there are a few formatting issues reported by ruff format.
Once those linter checks are fixed, we’ll be happy to merge the PR.
Author
SummaryThis PR improves the developer experience when using Changes
Verification
|
anirudhaacharyap
commented
May 5, 2026
Author
anirudhaacharyap
left a comment
There was a problem hiding this comment.
Did the changes, please do check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1867
Currently, calling list_runs(), get_run(), or delete_run() on a RemoteWorkspace raises a bare NotImplementedError. This is unhelpful for users who encounter it without context.
This PR improves the developer experience by adding a descriptive and actionable error message to these methods. The message explicitly identifies RemoteWorkspace as the source and suggests using a local Workspace as a workaround.
Changes
Modified src/evidently/ui/workspace.py: Added the message "The Snapshot API is not yet implemented for RemoteWorkspace. Please use a local Workspace instead." to list_runs, get_run, and delete_run in the RemoteWorkspace class.
Created tests/ui/test_workspace.py: Added unit tests to verify that these methods raise the correct exception with the expected message.
Verification Results
Linting: Passed ruff check and ruff format.
Testing: New tests in tests/ui/test_workspace.py passed successfully (3/3).
Type Checking: Ran mypy on the modified file.