-
Notifications
You must be signed in to change notification settings - Fork 796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: 'GetAttrExpression' object is not callable
with interval.ref()
#3059
Comments
Thanks for the report @tkyoma! In Altair version 4.2.2 the Can you elaborate a little bit more in what way you are using this syntax? I'm not yet sure if this a bug or a breaking change. Would it for example be possible to use |
I got the exact same problem today. I installed altair 5.0.0, coded some graphs, then installed streamlit which requires altair 4. I later realized that the code was not working anymore and uninstalled streamlit and reinstalled altair 5, but the .ref() error was still occurring even though I restarted my notebook kernel, restarted jupyter to make sure I was using the latest version. alt.version returns 5.0.0 too. I can reproduce the problem by using this example from the docs:
I am getting the following error:
|
@EtienneT Does your example work if you remove the |
Here is the documentation link: On my main conda environment, if I remove the call to .ref(), I get the following error:
Even though I am using version 5.0.0. But then I created a completely fresh environment, tried it without the .ref() call and it works. Something got corrupted in my current environment. |
Can we do the same x-axis selection in altair 4 (to work in streamlit) which changes the scale of the X axis? Thanks, |
Thanks for the wonderful library!
Using the previous version
4.2.2
, everything works fine, but with5.0.0
, the following code produces the error shown:The text was updated successfully, but these errors were encountered: