altair: "'ValidationError' object has no attribute 'json_path'" on interactive legend example in RC
I have trouble passing the condition passing a point selection into the encode method. The interactive legend example does not work on my end. I tried both RC1 and RC2, and in both cases, I get this:
'ValidationError' object has no attribute 'json_path'
… which seems to have been connected with issue #2715.
Is this a known issue? I do not get the error on version 4 with the old
Thank you, Marian
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (10 by maintainers)
Thank you @nrchtct! That thread you linked does not seem very reassuring to me in terms of whether this update will happen on the Deepnote side anytime soon.
So if there were a straightforward way to solve this on the Altair side, that would also be helpful for my use of Altair in Deepnote (for teaching).
I learned in a thread on their forum that “jsonschema is one of the core packages of Deepnote that make the product work”. So this might take some time. In case, there are other Altair users on Deepnote they may run into similar issues when filtering along interactive legends.
My guess is that Deepnote imports jsonschema for its own use before executing user code. It would be worth asking their support if there’s a way around that, or if they could update the version.
Yes, per #3039.
Thanks I can reproduce this error with
jsonschema version
3.2.0
altair version5.0.0rc2
.reproducible spec:
The full error message is
Is this something that you recognize @binste?