panel-extensions / panel-graphic-walker

A project providing a Graphic Walker Pane for use with HoloViz Panel.
https://github.com/panel-extensions/panel-graphic-walker
MIT License
32 stars 3 forks source link

Add server computation #17

Closed MarcSkovMadsen closed 3 weeks ago

MarcSkovMadsen commented 3 weeks ago

Continues from #15, so review and merge that one first.

Adds server computation:

image

Reference Links:

Todo

maybe now/ maybe later

Test Script

You can test the functionality by serving the code below.

import pandas as pd
import panel as pn

from panel_gwalker import GraphicWalker
import logging

pn.extension()

df = pd.read_parquet(
    "https://datasets.holoviz.org/windturbines/v1/windturbines.parq"
)
# Enable server-side computation for scalable data processing
walker = GraphicWalker(df, server_computation=True, _debug=True)

pn.Column(
    walker,
    walker.param.server_computation,
).servable()
MarcSkovMadsen commented 3 weeks ago

Got a POC working

https://github.com/user-attachments/assets/202e9d61-c592-42e1-97e9-cd0f13ad5739

MarcSkovMadsen commented 3 weeks ago

Will wait for help from @philippjfr. See https://github.com/philippjfr/panel-graphic-walker/pull/17#discussion_r1818149676.

MarcSkovMadsen commented 3 weeks ago

Morning @philippjfr . I've cleaned up the code and documentation. I've also added a theme parameter.

I'll stop here. I hope you will finalize. See todo list in first post.

Next step for me would probably be to add the TableWalker it can be a pretty good stand alone table supplementing Tabulator and Perspective. Then support for showing an initial chart in GraphicWalker. Then support for DuckDB table object (and Polars DataFrame) would be nice.