List Info

Thread: Create API files for autocompletion




Create API files for autocompletion
user name
2008-04-14 17:52:25
Hello,
I see that it is possible to create API files for one's
project to use
with the eric autocompletion. Is there an easy way to do
this for a
distributed package (for example matplotlib)?
Thanks,
Glenn
_______________________________________________
Eric mailing list
Ericriverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/eric

Re: Create API files for autocompletion
user name
2008-04-17 12:23:05
On Dienstag, 15. April 2008, G Jones wrote:
> Hello,
> I see that it is possible to create API files for one's
project to use
> with the eric autocompletion. Is there an easy way to
do this for a
> distributed package (for example matplotlib)?

Just use the eric4-api script.

Detlev
-- 
Detlev Offenbach
detlevdie-offenbachs.de
_______________________________________________
Eric mailing list
Ericriverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/eric

Re: Create API files for autocompletion
user name
2008-04-17 13:25:00
Thank you, that helps. However, I am running into a problem
trying to
generate an API file for numpy. the numpy/__init__.py file
brings
functions from numpy.core.*, numpy.lib.*, etc into the
numpy
namespace, so that they can be accessed just as
numpy.function.
However, the API file does not recognize this. Is there any
way to get
the API autocompletion to work anywhere close to as well as
the
ipython autocompletion?
Thanks,
Glenn

On 4/17/08, Detlev Offenbach <detlevdie-offenbachs.de> wrote:
> On Dienstag, 15. April 2008, G Jones wrote:
>  > Hello,
>  > I see that it is possible to create API files for
one's project to use
>  > with the eric autocompletion. Is there an easy
way to do this for a
>  > distributed package (for example matplotlib)?
>
>
> Just use the eric4-api script.
>
>  Detlev
>
> --
>  Detlev Offenbach
>  detlevdie-offenbachs.de
>  _______________________________________________
>  Eric mailing list
>  Ericriverbankcomputing.com
>  http://www.riverbankcomputing.com/mailman/listinfo/eric
>
_______________________________________________
Eric mailing list
Ericriverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/eric

Re: Create API files for autocompletion
user name
2008-04-20 03:55:19
On Donnerstag, 17. April 2008, G Jones wrote:
> Thank you, that helps. However, I am running into a
problem trying to
> generate an API file for numpy. the numpy/__init__.py
file brings
> functions from numpy.core.*, numpy.lib.*, etc into the
numpy
> namespace, so that they can be accessed just as
numpy.function.
> However, the API file does not recognize this. Is there
any way to get
> the API autocompletion to work anywhere close to as
well as the
> ipython autocompletion?

IPython autocompletion is dynamic using some runtime
information (as far as I 
know). eric4's autocompletion (which is based on
QScintilla2) is static and 
works with API files. The script eric4-api parses Python
modules and extracts 
information needed to generate these API files.

However, latest snapshot together with latest snapshot of
rope plugin provide 
alternative autocompletion support using rope's
functionality. That might 
give you autocompletion that way you would like. Please give
it a try.

Regards,
Detlev

> Thanks,
> Glenn
>
> On 4/17/08, Detlev Offenbach <detlevdie-offenbachs.de> wrote:
> > On Dienstag, 15. April 2008, G Jones wrote:
> >  > Hello,
> >  > I see that it is possible to create API
files for one's project to use
> >  > with the eric autocompletion. Is there an
easy way to do this for a
> >  > distributed package (for example
matplotlib)?
> >
> > Just use the eric4-api script.
> >
> >  Detlev
> >
> > --
> >  Detlev Offenbach
> >  detlevdie-offenbachs.de
> >  _______________________________________________
> >  Eric mailing list
> >  Ericriverbankcomputing.com
> >  http://www.riverbankcomputing.com/mailman/listinfo/eric



-- 
Detlev Offenbach
detlevdie-offenbachs.de
_______________________________________________
Eric mailing list
Ericriverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/eric

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )