ipyvolume icon indicating copy to clipboard operation
ipyvolume copied to clipboard

Cannot create figure (TraitError)

Open amicitas opened this issue 4 years ago • 4 comments

I am unable to create an ipyvolume figure in a jupyter notebook due to a trait error:

import ipyvolume as ipv
ipv.figure()

Gives me the following error: TraitError: The 'matrix_world' trait of a Figure instance contains a CFloat of a List which expected a float, not the NoneType None.

This error appeared for me last week, presumably from me upgrading something else in my python stack.

This behavior is seen with both ipyvolume v0.5.2 and v0.6.0a6

  • Jupyter Notebook 6.1.4
  • Python 3.8.5

I have also tested this with Python 3.7, which results in the same error. I have tried completely rebuilding my python installation, which has not fixed the issue.

amicitas avatar Sep 14 '20 20:09 amicitas

I am having the exact same issue. Reverting the module traitlets back to version 4.3.1 solved this problem temporally.

yangyushi avatar Sep 20 '20 22:09 yangyushi

Curious if this is still an issue, haven't seen this myself.

maartenbreddels avatar Oct 29 '21 19:10 maartenbreddels

The problem still exists for me. I am using Python 3.7.7 on macOS 11.6.

I am getting the same error with my current ipyvolume (version 0.5.2) and latest traitlets (version from 5.0.0 to 5.1.1).

yangyushi avatar Oct 30 '21 00:10 yangyushi

I don't get this error anymore. (However I also don't get any figure at all to show in my notebook at this point, probably unrelated to this issue.)

Python 3.9.7 ipyvolume 0.5.2 traitlets 5.1.0

amicitas avatar Nov 03 '21 18:11 amicitas