-
Notifications
You must be signed in to change notification settings - Fork 11
altair.utils.schemapi.SchemaValidationError: VConcatChart
has no parameter named 'selection'
#61
Comments
I think that I am past the VConcatChart has no parameter named 'selection' and now I have a new error: altair_viewer._utils.NoMatchingVersions: No matches for version='5.15.1' among ['4.0.2', '4.8.1', '4.17.0']. I have had Altair working great until just recently updating python. Now Altair is giving me fits. |
Altair viewer is not supported in Altair 5+. Depending on what functionality you rely on from it, there might be another solution, can you say more about what you use altair viewer for? |
That might explain it that Altair viewer is no longer an option. I have been using Altair for years, but now all of my old python code with Altair no longer work. I have discovered a few changes I need to make:
For my jupyter notebooks I just use a line that mentions what I want to plot. plot `alt.renderers.enable('altair_viewer') plot.show()` This no longer works. I have tried to launch the interactive browser using commands like:
|
Altair 5 is automatically installed with my conda env so I removed and reinstalled altair using conda install altair=4 and now I am back to normal in a non-Jupyter Notebook/Lab environment. I am not sure how you are supposed to use Altair 5 without a viewer, but I am sure I am missing something here. Anyway Altair 4.2 works great for my needs. |
Yes, to open charts from a terminal in altair 5, there is currently no as convenient way as using altair_viewer in altair <5. Most IDEs such as JupyterLab, VS Code etc should work fine, but for a terminal you would currently need to save the file and then open it in a browser. Something like this: import altair as alt
import webbrowser
import os
filename = 'chart.html'
alt.Chart().mark_circle().save(filename)
webbrowser.open('file://' + os.path.realpath(filename)) You could put that in a function so that it's only a single line of code. Maybe we should put something similar in altair itself, but it would of course be nice to have a more robust option like altair_viewer in altair 5 as well (although I'm not sure the details of what altair_viewer adds over something simple like this). |
Since Altair 5.3, the functionality of Altair Viewer is now available in Altair via the vl-convert package instead. See the docs on how to use the browser renderer to display charts via We are going to archive this repo, so I'm closing all the open issues and PRs before doing so. Try out the new options for rendering charts mentioned above and if you run into issues, please open an issue directly in the altair or vl-convert repo. |
Hello,
I have been using Altair for a few years, but now having trouble launching the altair_viewer where I am getting the following error message:
altair.utils.schemapi.SchemaValidationError:
VConcatChart
has no parameter named 'selection'My code is shown below. It is on the newer installations of Altair where I have a problem, so I am guessing my code is out of date.
`#from pandas import DataFrame, read_csv
from pandas import DataFrame
import altair as alt
import altair_viewer
#alt.renderers.enable('altair_viewer')
import altair_transform
alt.data_transformers.disable_max_rows()
import pandas as pd
import numpy as np
import geolog
Load data from geolog
while geolog.gettable():
`
The text was updated successfully, but these errors were encountered: