Closed jgunstone closed 2 months ago
Does the sort actually work for you? It didn't do anything for me when I tested with the PerspectiveWidget
import pandas as pd
import numpy as np
from datetime import date, datetime
today = date.today().toordinal()
data = pd.DataFrame({
"int": np.arange(100),
"float": [i * 1.5 for i in range(100)],
"bool": [True for i in range(100)],
"date": [date.fromordinal(today + i) for i in range(100)],
"datetime": [datetime.now() for i in range(100)],
"string": [str(i) for i in range(100)]
})
PerspectiveWidget(data, sort=[["date", Sort.DESC]])
If PerspectiveWidget
is being given an overhaul it might make sense to leverage the anywidget
framework.
Your installation looks broken (at least - the theme CSS + web component + python library are from conflicting versions). I see (at least) two issues:
1) Conda is not a currently supported platform. The builds deployed there may work or not - I have not verified them. We are looking into adding support for this in the future but we won't be backdating support to old Perspective versions, speaking of which .. 2) Perspective 2.10.1 does not support JupyterLab 4. Perspective 3.1.0 is the latest version and does not behave as described.
(Converting this issue to a discussion)
Bug Report
Steps to Reproduce:
bool
into "Group By" fieldExpected Result:
when you make changes to the UI config settings they are updated in the debug JSON
Actual Result:
Environment:
fresh install -
environment.yml
Additional Context:
some other issues I've encountered with the jupyter perspective widget vs the online examples (e.g. https://perspective.finos.org/block/?example=editable). True in both jupyter notebooks and the
PerspectiveCSV
viewer.