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
repr_html exception warning on qtconsole with pandas #4745 #4792
Comments
There is already an official way to communicate no output - returning None. We can add support for NotImplementedError (and/or NotImplemented), but it would be redundant. |
without warning closes ipython#4792
#4832 should prevent warning on NotImplementedError |
Thanks. I was not aware of Until now we raised
|
utils.warn is little more than a shortcut for sys.stderr, so there's no good way to suppress it. I've switched it to a real warning in #4832, so you should be able to suppress IPython.core.formatters.FormatterWarning. |
#4832 tested and resolves the issue, I'll add a mention in the pandas docs. Thanks for the quick fix. |
without warning closes ipython#4792
#4745 - warn on failed formatter calls
since qtconsole html output is limited, pandas choses to provide an
html repr on ipnb only and raise an exception from
_repr_html_
when in qtconsole to fallbackto a text repr. This used to work fine, but #4745 now results in a warning message constantly
being emitted about the exception being raised.
@minrk, how about supressing a
NotImplementedError
as a form of contract?The text was updated successfully, but these errors were encountered: