OpenBBTerminal
OpenBBTerminal copied to clipboard
[IMPROVE] Improve error message when openbb.stocks.pred. is used
What's the feature that should be improved? pred_api does not get imported when tensorflow is not installed. As a result, when openbb.stocks.pred. is used, it's hard to know why the API is not working as expected.
Describe how you would like the feature improved Ideally, we should know that openbb.stocks.pred was not fully imported due to tensorflow dependency
What would be the proper way of handling this?
At the moment the import of the pred api is wrapped into a try-except.
We can add a message printout when the exception is raised, but that would lead to this message being there all the time even if the user had no intention to use the prediction menu. We can handle this verbosity using some sort of env variable flag, but that would not add to UX simplicity.
@sautplat @DidierRLopes please advice
What would be the proper way of handling this?
At the moment the import of the pred api is wrapped into a try-except.
We can add a message printout when the exception is raised, but that would lead to this message being there all the time even if the user had no intention to use the prediction menu. We can handle this verbosity using some sort of env variable flag, but that would not add to UX simplicity.
@sautplat @DidierRLopes please advice
not sure how to best handle this honestly