EntropyOrg / p5-Devel-IPerl

:microscope::books: Perl5 language kernel for Jupyter <http://jupyter.org/>
http://p3rl.org/Devel::IPerl
93 stars 15 forks source link

Support arguments in load_plugin() #95

Open iynehz opened 5 years ago

iynehz commented 5 years ago

See https://github.com/EntropyOrg/p5-Devel-IPerl/blob/0f9fe2f1470a347705b5ce5bac7fa8fb40904869/lib/IPerl.pm#L40

Now this load_plugin method does not support arguments. It would be best to support arguments like my ($class, $plugin_name, @args) = @_, and register plugins by $plugin_package->register( $class, @args );, so plugin developer can have arguments to fine control behavior of their plugins.

One use case is https://github.com/pablrod/p5-Devel-IPerl-Plugin-Chart-Plotly/issues/7