Skip to content
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

Issue when trying to use interactive heatmap (df.widget.heatmap --> NameError: name 'observe' is not defined) #2321

Open
meierale opened this issue Jan 5, 2023 · 1 comment

Comments

@meierale
Copy link

meierale commented Jan 5, 2023

I was following your article (https://towardsdatascience.com/vaex-out-of-core-dataframes-for-python-and-fast-visualization-12c102db044a) and tried to reproduce it locally (on an Azure AML compute instance)

Whilst most things work as expected, creating an interactive heatmap fails. I am using the yellow taxi 2015 hdf5 file you provide in your datasets section. Invoking df_yt_2015.widget.heatmap(df_yt_2015.dropoff_longitude, df_yt_2015.dropoff_latitude, shape=400, f='log1p', controls_selection=True) fails with:

File /anaconda/envs/my_env/lib/python3.8/site-packages/vaex/jupyter/widgets.py:517, in ToolsToolbar()
    513 @traitlets.default('template')
    514 def _template(self):
    515     return load_template('vue/tools-toolbar.vue')
--> 517 @observe('z_normalize')
    518 def _observe_normalize(self, change):
    519     self.normalize = bool(self.z_normalize)

NameError: name 'observe' is not defined

I didn't have time to dig further into it.

@LukeDickerson19
Copy link

LukeDickerson19 commented May 1, 2024

I've found a fix for this. See here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants