import vaex as vx
vx.settings.display.max_columns = None
vx.from_dict({"x": [1]})
I expect that the dataframe is displayed. But I get this error:
File [...]/lib/python3.9/site-packages/vaex/dataframe.py:4082, in DataFrame._as_table(self, i1, i2, j1, j2, format, ellipsis)
4080 # parts += ["<thead><tr>"]
4081 for i, name in enumerate(column_names):
-> 4082 if columns_sliced == i:
4083 values_list.append([ellipsis, []])
4084 values_list.append([name, []])
UnboundLocalError: local variable 'columns_sliced' referenced before assignment
Is vx.settings.display.max_columns = None not supported? Then, why is it checked here? So I think it is just a bug. Setting columns_sliced = None before the loop would fix it.
Description
I run the following in a Jupyter notebook:
I expect that the dataframe is displayed. But I get this error:
Is
vx.settings.display.max_columns = None
not supported? Then, why is it checked here? So I think it is just a bug. Settingcolumns_sliced = None
before the loop would fix it.Software information