Comments (4)
Can I have the traceback and the code you ran?
from altair_widgets.
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.
Looks like altair-widgets is at 0.2.0:
I'll try uploading to PyPI again.
from altair_widgets.
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)
- Add support for linear/log scales HOT 1
- Create interface to select initial columns to display
- altair_widgets doesnโt work under altair 1.2 and ipywidgets 7.0 HOT 3
- Does not work with ipywidgets 7.4.0 and altair 2.2.2 HOT 6
- Altair Widgets in Colab HOT 4
- Showing a new plot takes a long time HOT 2
- Add unit tests & set-up Travis HOT 1
- Advanced options are disabled
- Menus/etc in "options" don't display current setting HOT 1
- Show Python code to generate chart HOT 1
- Provide an interface to select columns of a certain values HOT 1
- Use a MVC framework
- a github tag for 0.1.2 ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from altair_widgets.