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
In a Jupyter notebook, no display when poof is in a separate cell #380
Comments
@fdion thanks exploring this package and then creating this issue when you found the bug. We'll take a look at the api and resolve this bug around the use case. |
potentially related issue with the |
#375 would fix the display when poof is called (I tested it by adding return ax to poof), but it wont prevent the display of the empty figure when fit is called. |
This is a tough one; poof is a wrapper for The notebook should get the ax returned from Not sure how to handle the empty figure though, |
As in https://github.com/DistrictDataLabs/yellowbrick/blob/develop/yellowbrick/base.py
Hence poof in documentation wraps up visualizer.finalize() and plt.show() or plt.savefig(). So,shall I change the Rank1D code,please guide what to do? |
Hi @naba7 thank you for your note - I did check |
Ok! No problem
…On Wed 13 Feb, 2019, 8:21 PM Benjamin Bengfort ***@***.*** wrote:
Hi @naba7 <https://github.com/Naba7> thank you for your note - I did
check Rank1D and it looks like it does indeed return self so no change
needs to be made to that. If you're interested in taking a look at this,
perhaps you can see if you can reproduce the bug using the notebook that
@fdion <https://github.com/fdion> provided on YB v0.9.1? It is possible
that this bug has been repaired through a different change.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#380 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AeGb94l7_gbacQXKcxLq84v_DreX-e5Wks5vNCZugaJpZM4TFJoq>
.
|
I went through this issue and after exploring it a bit I found a few fixes. This is still an issue and needs to be rectified. 2, poof returns self.ax.get_figure()(Requires research, experiments and suggestions ) |
I believe this has been fixed by #953 |
if visualizer.poof() is called in a separate cell, no visualization appears, as the empty plot has already been rendered in the call for fit(). Workaround is to access visualizer.ax.get_figure().
Issue
For extra detail, see demo notebook linked in Background section
Code Snippet
Tested using the bike share data set from the YB intro
In one cell:
In a separate cell:
visualizer.poof()
Background
Demo notebook
https://gist.github.com/fdion/d645e164f6969d269aff681efa31ef96
The text was updated successfully, but these errors were encountered: