question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

changes from altair1 to altair2?

See original GitHub issue

I’m taking altair1 code and trying to make it work with altair2 (also a switch to python3). Not asking anyone to debug my code, but chart.savechart fails with a vega-lite schema validation error I’ve never seen before.

Is there any sort of porting guide that says “if you did this in altair1, it doesn’t work any more, do this instead”?

    chart.savechart(os.path.join(outputdir, name) + '.' + fileformat)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/altair/vegalite/v2/api.py", line 374, in savechart
    return self.save(fp, format=None, **kwargs)
...
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/altair/utils/schemapi.py", line 237, in to_dict
    raise SchemaValidationError(self, err)
altair.utils.schemapi.SchemaValidationError: Invalid specification

        altair.vegalite.v2.schema.channels.Column, validating 'additionalProperties'

        Additional properties are not allowed ('axis' was unexpected)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
domoritzcommented, Jul 2, 2018

Good timing. We just merged https://github.com/vega/vega-lite/pull/3943, which adds support for header. Once this is released and a new version of Altair is out, you can use it.

0reactions
jakevdpcommented, Aug 3, 2018

(providing good APIs for the new transforms is probably the biggest part of the work)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Altair1 - The Doom Wiki at DoomWiki.org
Chirko and released in August 1995. It had two sequels the following year, Altair2 and Altair3a.
Read more >
Fuji Aluminum Frames - Bike Forums
Fuji Newest now has Fuji Altair 1 aluminum fames. I believe that Fuji Newest use to have Fuji Altair 2 aluminum frames.
Read more >
Altair #1 - Lost in the mail. Who got Altair #2?
It is fairly well established that the first Altair built was lost in transit to Les Solomon back in October of 1974.
Read more >
MITS ALTAIR #2 Restoration Page
The CPU and static RAM board work OK in Altair #1. ... I connected the drive to the controller with a short cable,...
Read more >
Specifying Data in Altair — Altair 4.2.0 documentation
Importing Vega & Vega-Lite Versions · Displaying Altair Charts · Renderer API · Customizing Renderers · Data transformers. Release Notes. Altair Change Log....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found