Giter Club home page Giter Club logo

Comments (4)

stsievert avatar stsievert commented on July 18, 2024

Can I have the traceback and the code you ran?

from altair_widgets.

stsievert avatar stsievert commented on July 18, 2024

Code I ran:

from altair import load_dataset
import sys
import altair
from altair_widgets import interact_with

df = load_dataset('iris')
interact_with(df, ndims=3)

Traceback with altair_widgets.__version__ == 0.1.2

TypeError                                 Traceback (most recent call last)
<ipython-input-4-57ed614d4e9b> in <module>
----> 1 interact_with(df)
~/anaconda3/lib/python3.7/site-packages/altair_widgets/widget.py in interact_with(df, ndims, **kwargs)
---> 28     return Interact(df, ndims=ndims, **kwargs)
~/anaconda3/lib/python3.7/site-packages/altair_widgets/widget.py in __init__(self, df, ndims, show)
---> 58         self.plot(show=show)
~/anaconda3/lib/python3.7/site-packages/altair_widgets/widget.py in plot(self, show)
--> 170         self.chart = Chart_mark(**mark_opts).encode(**kwargs)
~/anaconda3/lib/python3.7/site-packages/altair/vegalite/v3/api.py in encode(self, *args, **kwargs)
-> 1387         kwargs = utils.infer_encoding_types(args, kwargs, channels)
~/anaconda3/lib/python3.7/site-packages/altair/utils/core.py in infer_encoding_types(args, kwargs, channels)
--> 509             for encoding, obj in kwargs.items()}
~/anaconda3/lib/python3.7/site-packages/altair/utils/core.py in <dictcomp>(.0)
--> 509             for encoding, obj in kwargs.items()}
~/anaconda3/lib/python3.7/site-packages/altair/utils/core.py in _wrap_in_channel_class(obj, encoding)
--> 498         cls = classes['value'] if 'value' in obj else classes['field']
TypeError: argument of type 'NoneType' is not iterable

from altair_widgets.

stsievert avatar stsievert commented on July 18, 2024

Looks like altair-widgets is at 0.2.0:

__version__ = '0.2.0'

I'll try uploading to PyPI again.

from altair_widgets.

stsievert avatar stsievert commented on July 18, 2024

Resolved the immediate issue by uploading to PyPI; the TypeError is resolved. I'm closing this issue.

I've also made sure the example runs for me. Let me know if it fails for you.

from altair_widgets.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.