You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 0.6.3. seemingly stopped working after last Chrome update; Volshow and scatter plots generate empty plots. Some examples are:
Scatter plot on the documentation website generates x / y / z axes with maximum size of 1:
Volshow on the documentation website generates an empty plot:
Surfaces produce some wonky results, again axes being constrained between 0 and 1.
These fail to work on custom data too. So far I have tried downgrading to version 0.6.0., and opening the plots with Firefox, Opera, Edge, and Chrome. Is this happening for anyone else?
Thank you in advance for your help
Reacted by Janfisch, Francisco Correia Marques and YongcaiHuang
is there a workaround? I have tried without success to install a combination of packages such that one can use the scatter plot again. I have an old environment with 0.6.0a8 and notebook 6 lying around that does work (with all new browsers I have installed), so I do not believe that it is a chrome issue, as suggested in the original bug report.
I think it is a compatbility issue with newer versions of ipython, jupyter or something similar. Also jupyter does not include ipython_genutils anymore, which is required by ipyvolume but apparently not in the requirements because it is not installed in the standard conda install.
In fact, I have tried to use an older version of ipyvolume (even going back to 0.6.0a8 and notebook 6) and have not found a combination of packages which fixes the bug.
Right now I have found no way that I can install ipyvolume in a new conda environment from scratch without this bug occuring. This is also true for firefox by the way. It also cannot be fixed by setting the xlim etc.
Hey, has anyone managed to find a work around? I'm a new user trying to get started but have been unable to get a functional installation going for using volshow (I've even tried going back to 0.5.X versions but can't get jupyterlab to agree). Would be great to get an update on this, as to my understanding this error make the package unusable.
I am facing the same issue. After experimenting with package versions starting from an old configuration that worked for me, I found a setup where several examples in the docs could be plotted (with the correct ranges in the axes):
Still, the opacity controls on the right "Misc" menu are not showing.
Instead there is an error
[Open Browser Console for more detailed log - Double click to close this message]
Failed to load model class 'VBoxModel' from module '@jupyter-widgets/controls'
And when checking the browser console there are several lines like the following:
The resource at “https://choices.truste.com/ca?pid=adexpose01&aid=accordant01&cid=0711acc300x250&c=accordant01cont5&w=300&h=250&plc=br”
was blocked by OpaqueResponseBlocking. Reason: “after sniff: status code is not in allowed range”.
The same error shows for different URLs, but always with the same reason.
Finally, the RuntimeWarning (invalid value encountered in cast), which I have seen in other cases seems to be related to the presence of NaNs in the gradient array. Adding something like gradient[i][zindex][~np.isfinite(gradient[i][zindex])] = 0 (same operation as in line 89 of the script) before Line 102 in serialize.py seemed to fix it.
If anyone has any ideas for further debugging, I would be happy to help. I am not sure where to look next, but I am very interested in restoring the functionality of ipyvolume.
Activity
LinusP217 commentedon Aug 28, 2023
This is happening for me as well. It seems regardless of the data, the x,y,z axes are limited to [0,1] range.
oliverdrozdowski commentedon Nov 28, 2023
Hi,
is there a workaround? I have tried without success to install a combination of packages such that one can use the scatter plot again. I have an old environment with 0.6.0a8 and notebook 6 lying around that does work (with all new browsers I have installed), so I do not believe that it is a chrome issue, as suggested in the original bug report.
I think it is a compatbility issue with newer versions of ipython, jupyter or something similar. Also jupyter does not include ipython_genutils anymore, which is required by ipyvolume but apparently not in the requirements because it is not installed in the standard conda install.
In fact, I have tried to use an older version of ipyvolume (even going back to 0.6.0a8 and notebook 6) and have not found a combination of packages which fixes the bug.
Right now I have found no way that I can install ipyvolume in a new conda environment from scratch without this bug occuring. This is also true for firefox by the way. It also cannot be fixed by setting the xlim etc.
lyhyl commentedon Dec 8, 2023
The same issue in vscode.

zagerpatrick commentedon Feb 2, 2024
Hey, has anyone managed to find a work around? I'm a new user trying to get started but have been unable to get a functional installation going for using volshow (I've even tried going back to 0.5.X versions but can't get jupyterlab to agree). Would be great to get an update on this, as to my understanding this error make the package unusable.
franciscomcm commentedon Feb 4, 2024
I am facing the same issue. After experimenting with package versions starting from an old configuration that worked for me, I found a setup where several examples in the docs could be plotted (with the correct ranges in the axes):
Still, the opacity controls on the right "Misc" menu are not showing.
Instead there is an error
And when checking the browser console there are several lines like the following:
The same error shows for different URLs, but always with the same reason.
Finally, the
RuntimeWarning(invalid value encountered in cast), which I have seen in other cases seems to be related to the presence of NaNs in the gradient array. Adding something likegradient[i][zindex][~np.isfinite(gradient[i][zindex])] = 0(same operation as in line 89 of the script) before Line 102 in serialize.py seemed to fix it.If anyone has any ideas for further debugging, I would be happy to help. I am not sure where to look next, but I am very interested in restoring the functionality of
ipyvolume.