Re: Writing a new plugin

2021-08-03 Thread Jean Brefort via gnumeric-list
Le mardi 03 août 2021 à 20:19 +, non-null--- via gnumeric-list a
écrit :
> On Tuesday, August 3, 2021 6:30 AM, Jean Brefort <
> jean.bref...@normalesup.org> wrote:
> Le mardi 03 août 2021 à 00:04 +, non-null--- via gnumeric-list a
> écrit :
> > On Monday, August 2, 2021 12:20 PM, Morten Welinder
> >  wrote:
> > The best approach at this point is to clone one of the existing
> > plugins. The first question is to ask "what kind of plugin?"
> > 
> > Adding functions to Gnumeric?  -- take, for example, fn-math
> > 
> > Adding a solver method?  -- take glpk (external program) or nlsolve
> > (internal).
> > Anything else?  samples are getting a bit thin.
> > OK, thanks.
> > 
> > How is integration set up for other programming languages (e.g.
> > Python): through the plugin API?
> 
> I wrote some years ago a plugin using C++. The code is available at
> http://svn.savannah.gnu.org/viewvc/gchemutils/trunk/gchemutils/gnumeric/
> 
> I suppose it should work mostly the same with the D language.
> 
> Python is quite a different issue, since a Python plugin needs a
> specific loader.
> 
> Hope this helps,
> Jean
> Yes, very helpful and thanks.
> 
> As for the specific loader for Python, is that in a plugin itself?

Yes, the plugin is python-loader.

___
gnumeric-list mailing list
gnumeric-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnumeric-list


Re: Writing a new plugin

2021-08-03 Thread non-null--- via gnumeric-list
On Tuesday, August 3, 2021 6:30 AM, Jean Brefort 
wrote:  

>
> Le mardi 03 août 2021 à 00:04 +, non-null--- via gnumeric-list a
> écrit :
> > On Monday, August 2, 2021 12:20 PM, Morten Welinder
> >  wrote:
> > The best approach at this point is to clone one of the existing
> > plugins. The first question is to ask "what kind of plugin?"
> >
> > Adding functions to Gnumeric?  -- take, for example, fn-math
> >
> > Adding a solver method?  -- take glpk (external program) or nlsolve
> > (internal).
> > Anything else?  samples are getting a bit thin.
> > OK, thanks.
> >
> > How is integration set up for other programming languages (e.g.
> > Python): through the plugin API?
>  
> I wrote some years ago a plugin using C++. The code is available at
> http://svn.savannah.gnu.org/viewvc/gchemutils/trunk/gchemutils/gnumeric/
>  
> I suppose it should work mostly the same with the D language.
>  
> Python is quite a different issue, since a Python plugin needs a
> specific loader.
>  
> Hope this helps,
> Jean  
> >

Yes, very helpful and thanks.  

  

As for the specific loader for Python, is that in a plugin itself?  

  

  

  

___
gnumeric-list mailing list
gnumeric-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnumeric-list


Re: Writing a new plugin

2021-08-03 Thread Jean Brefort
Le mardi 03 août 2021 à 00:04 +, non-null--- via gnumeric-list a
écrit :
> On Monday, August 2, 2021 12:20 PM, Morten Welinder
>  wrote:
> The best approach at this point is to clone one of the existing
> plugins. The first question is to ask "what kind of plugin?"
> 
> Adding functions to Gnumeric?  -- take, for example, fn-math
> 
> Adding a solver method?  -- take glpk (external program) or nlsolve
> (internal).
> Anything else?  samples are getting a bit thin.
> OK, thanks.
> 
> How is integration set up for other programming languages (e.g.
> Python): through the plugin API?

I wrote some years ago a plugin using C++. The code is available at
http://svn.savannah.gnu.org/viewvc/gchemutils/trunk/gchemutils/gnumeric/

I suppose it should work mostly the same with the D language.

Python is quite a different issue, since a Python plugin needs a
specific loader.

Hope this helps,
Jean

___
gnumeric-list mailing list
gnumeric-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnumeric-list


Re: Writing a new plugin

2021-08-02 Thread non-null--- via gnumeric-list
On Monday, August 2, 2021 12:20 PM, Morten Welinder  wrote:  

>
> The best approach at this point is to clone one of the existing
> plugins. The first question is to ask "what kind of plugin?"
>  
> Adding functions to Gnumeric?  -- take, for example, fn-math
>  
> Adding a solver method?  -- take glpk (external program) or nlsolve
> (internal).
>  
> Anything else?  samples are getting a bit thin.  
> >

OK, thanks.  

  

How is integration set up for other programming languages (e.g. Python):
through the plugin API?  

  

  

___
gnumeric-list mailing list
gnumeric-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnumeric-list


Re: Writing a new plugin

2021-08-02 Thread Morten Welinder
The best approach at this point is to clone one of the existing
plugins. The first question is to ask "what kind of plugin?"

Adding functions to Gnumeric?  -- take, for example, fn-math

Adding a solver method?  -- take glpk (external program) or nlsolve (internal).

Anything else?  samples are getting a bit thin.

M.
___
gnumeric-list mailing list
gnumeric-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnumeric-list