pygwalker
pygwalker copied to clipboard
Allow single spec file same for multiple cell (different Dataframes) visualization
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.
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
@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.
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.