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

Improve non-interactive usage with more explicit error reporting / handling. #70

Open
restlessronin opened this issue Nov 23, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@restlessronin
Copy link
Owner

restlessronin commented Nov 23, 2023

Describe the feature or improvement you're requesting

Since the library has been designed for Livebook usage, it's primary use-case is interactive. If something doesn't work when a cell is evaluated, one can look at the returned json in the output and manually fix whatever is wrong with the request. The returned JSON is usually pretty clear about what went wrong.

This has worked well for my usage, but I'd like to support non-interactive usage for those who convert their livebook samples to libraries / apps that run non-interactively.

This might involve throwing / raising errors whenever the API returns an error message. Or returning an :error tuple (requiring a change at the point of call). My preference would be to mimic what the official python library does

Please upvote this if you this is something you need for your use case. Leave a comment if you have an opinion on how it should be handled.

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

No branches or pull requests

1 participant