Skip to content

Conversation

@GenevieveBuckley
Copy link
Contributor

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

Similar to issue #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

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
Copy link
Member

vidartf commented May 23, 2019

Thanks again :)

@vidartf vidartf merged commit b051e06 into jupyter-widgets:master May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants