Closed jmosbacher closed 1 year ago
I've asked in the pyviz/pyviz gitter channel what the HoloViz developers think about .extension()
vs unused module imports.
@MarcSkovMadsen thanks, i guess this is not very high priority so I dont mind waiting to see if any good ideas come up
I think the correct approach here is using entry_points resolved from within panel.extension(). I will submit a PR to panel and see if they are open to such a thing.
The PR adds dynamic loading of Pydantic pane so its only registered if requested explicitly. This addresses #14 but is also useful if someone may want to use the package widgets and utils but doesnt want to affect how
pn.panel
behaves.This can be further improved by having settings passed to
extension()
that change how Pydantic pane behaves.