jupyter-widgets / pythreejs

A Jupyter - Three.js bridge
https://pythreejs.readthedocs.io
Other
942 stars 188 forks source link

Update pythreejs.py to silence traitlets warning #271

Closed GenevieveBuckley closed 5 years ago

GenevieveBuckley commented 5 years ago

Here's a one line fix to silence a traitlets deprecation warning in pythreejs.py

Similar to issue https://github.com/jupyter-widgets/pythreejs/issues/236

Traitlets warning encountered:

...\site-packages\pythreejs\pythreejs.py:56
  C:\Users\genevieb\AppData\Local\conda\conda\envs\ipyvolume-dev\lib\site-packages\pythreejs\pythreejs.py:56: DeprecationWarning: Traits should be given as instances, not types (for example, `Int()`, not `Int`). Passing types is deprecated in traitlets 4.1.
    z = List(CFloat, [0] * 100)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
vidartf commented 5 years ago

Thanks again :)