-
Notifications
You must be signed in to change notification settings - Fork 47
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
Not working with iPython/Jupyter #48
Comments
What backend are you using? You'll have to use Otherwise, the |
Sorry, I just found the relevant issue. I've updated the above report. |
To maintain compatibility with older versions of IPython, matplotlib's It's unavoidable, but can be safely ignored. |
PS Could this |
@p-i-: That's a good point! I'll add it to the readme tonight. I'm going to re-open this issue as a reminder to myself. |
Not sure whether to open a new issue for this. I like the readout to be here, but how to get the value? That's what I really need! PS also clicking has no effect. |
The readout you're seeing is the standard matplotlib readout, not Did you click on the plot and not get an annotation popping up? If so, I'm On Tue, Nov 10, 2015 at 5:10 PM, Pi notifications@github.com wrote:
|
What version of mpl are you using? There is a strange mix of the new color map and old styling of the nbagg close button. |
@tacaswell, mpl 1.4.3 -- I manually copied across Viridis from https://github.com/BIDS/colormap/blob/master/colormaps.py |
You really should not copy code around ad-hoc like that, it leads to a reproducibility nightmare. |
@tacaswell, I haven't yet got round to supplying a reproducible problem. But maybe now is the right time. (I can't catch the mouse cursor in the screenshot)
|
I am on:
My setup could probably be replicated by using a fresh Anaconda installation (I only installed anaconda under a week ago) |
I just submitted matplotlib/matplotlib#6030 which fixes an issue with the datacursor for me in matplotlib 1.5.1 with mpldatacursor 0.6.2 |
I have rendering issues using the nbagg backend. However I have thought of making a html image map and use plain javascript to add/render divs. I would actually like to interact between two charts, meaning clicking on one changes the other. This could be done by using the notebook kernel as demonstrated in this gist. Here one could either render a tooltip (or anything using plain javascript) or execute any arbitrary python code i.e. like interactive ipywidgets are doing. Since I am working heavily on my own open source module I have priorities and can't promise anything. But if I have some time I would appreciate a hint if I could produce such an image map using existing functionality of mpldatacursor and where I should start looking at / hooking into. |
|
@p-i- Not sure if you have resolved the problem. I am using mplcursors instead and it works for me on OSX. |
Python 3.5.0 |Anaconda 2.4.0 (x86_64)| (default, Oct 20 2015, 14:39:26)
[GCC 4.2.1 (Apple Inc. build 5577)]
I tried the first code example in a Jupyter/iPython notebook cell:
I've run
pip install mpldatacursor
and donekernel -> restart
from Jupyter notebook.Executing the cell, the plot displays correctly but it is noninteractive. Clicking a line does not do anything.
EDIT: just found #12
Adding
%matplotlib nbagg
does produce something working, although it gives the error:/Users/pi/anaconda/lib/python3.5/site-packages/IPython/kernel/init.py:13: ShimWarning: The
IPython.kernel
package has been deprecated. You should import from ipykernel or jupyter_client instead.The text was updated successfully, but these errors were encountered: