import vispy.app

vispy.app.use_app("ipynb_webgl")
from vispy import plot as vp

fig = vp.Fig(show=False)
fig1 = fig[0, 0]
fig1.plot(range(10), marker_size=0)
fig.show(run=True)
import dask.dataframe as dd

input_directory = (
    r"C:\Users\Public\Documents\TRAVAIL\csg\data_in\extraction_assiettes_csg\*.hdf"
)
rfrs = dd.read_hdf(input_directory, "/pote2019")
rfrs.columns
sample = rfrs[rfrs["revkire"] > 500_000]
%%time
sample = sample.set_index("revkire").compute()
len(sample)
 
import vispy.app

vispy.app.use_app("ipynb_webgl")
from vispy import plot as vp

fig = vp.Fig(show=False)
fig1 = fig[0, 0]
fig1.plot((range(len(sample)), sample.index), marker_size=10)
fig.show(run=True)
print(f"{sample.index.max():,}")
print(f"{sample.index.min():,}")