Closed kuanawanda closed 2 years ago
Hmm strange. If I run exactly this:
import navis
nl = navis.example_neurons()
nl.plot3d(backend='plotly', radius=True)
it works just fine. Can I just confirm that you haven't edited the example neurons in your code?
Hi Phillip - Thanks for your reply. Yes, I've been unable to reproduce the error on my ubuntu machine (ie, it works fine on ubuntu). Strangely enough when I copy the exact environment to my mac with pip freeze, I still get the same error. I'll try to dig a bit into where the error is coming from specifically and let you know if anything becomes more clear.
The good news is that it runs fine on my ubuntu machine so it's not currently an urgent issue for me. Thanks!
Hi Phillip - I think I tracked down the issue. I have been using MagicMock to work around issues installing Vispy on Big Sur (from https://github.com/navis-org/navis/issues/17).
In plot_utils.py, vispy.util.transforms.rotate is used even if a different backend is used. (https://github.com/navis-org/navis/blob/043e37db25a6a4299b99b9a3f327a380bf9f8102/navis/plotting/plot_utils.py#L305). So in my case the rotate function was getting mocked and caused the error.
I was able to install vispy (MacOs BigSur 11.2.3) and then it works fine. I don't know when/how the issue with Big Sur and vispy got resolved but it seems fixed. It might make sense to use a rotate function that doesn't require vispy, but since vispy is installed with navis and the Mac compatibility issue seems resolved maybe this isn't necessary.
Thanks!
I'm having trouble getting plot3d to work with radius=True. When I run the following:
nl = navis.example_neurons()
nl.plot3d(backend='plotly', radius=True)
I get the error below. With radius=False, it's fine. 'k3d' backend gives the same error. I'm running a jupyter notebook on Visual Studio on mac.
Thanks!