pygwalker icon indicating copy to clipboard operation
pygwalker copied to clipboard

Allow single spec file same for multiple cell (different Dataframes) visualization

Open rishabh-dream11 opened this issue 1 year ago • 3 comments

Issue: Current functionality does not allow saving different visualizations(different Jupyter cells and different data frames) to a single config file. If you plan to share your repo with someone for collaboration, this clutters the filespace.

rishabh-dream11 avatar Oct 21 '23 02:10 rishabh-dream11

Sure, that's a good idea. There might be some small problems about how to design the unique for a cell in juypter to bind the related visualization. @longxiaofei

ObservedObserver avatar Oct 21 '23 04:10 ObservedObserver

@rishabh-dream11

What do you think of this?

pyg.walker(df, spec="config.json", name="demo0")
pyg.walker(df, spec="config.json", name="demo1")
pyg.walker(df, spec="config.json", name="demo2")

You need to pass in a config path and an instance name at the same time.

The configs of multiple instances are written into the same config file. You use names to distinguish them.

Or

pyg.walker(df, spec="config/demo0.json")
pyg.walker(df, spec="config/demo1.json")
pyg.walker(df, spec="config/demo2.json")

You use a folder to manage your config files.

longxiaofei avatar Oct 22 '23 07:10 longxiaofei

I would prefer pyg.walker(df, spec="config.json", name="demo0") with an option to give autogenerate a unique keyword for name by itself, which a user can override if they want to.

rishabh-dream11 avatar Nov 06 '23 01:11 rishabh-dream11