[Eric] new user asks about completing numpy in editor

reckoner reckoner at gmail.com
Wed Dec 23 12:03:26 GMT 2009


Please send this script to me and I'll look at it.

Thanks!



On 12/23/2009 3:37 AM, detlev wrote:
> Hi,
>
> QScintilla uses so called API files that describe the API of a software
> package like Python or numpy. Without them, there is no autocompletion or
> calltips available for that package.
>
> I have an old script around, that may be used to generate such an API file for
> numpy. If anybody wants to hack it, please leave me a note.
>
> Regards,
> Detlev
>
> On Mittwoch, 23. Dezember 2009, Algis Kabaila wrote:
>    
>> On Tuesday 22 December 2009 23:47:37 detlev wrote:
>>      
>>> On Dienstag, 22. Dezember 2009, reckoner wrote:
>>>        
>>>> Are there instructions for this? Maybe I could try?
>>>>          
>>> If numpy is a Python source package, you could use eric4-api.py.
>>>        
>> NumPy is a large and complex module with big portions written in C/C++. It
>> covers matrix algebra and other matrix or matrix-like numeric operations.
>>   It claims to superseed Numeric and NumArray.
>>
>> Alas, I do not understand what sort of API's you are talking about.  NumPy
>>   is a module and can be used as a module - with eric or any other IDE for
>>   python, icluding a CLI console.
>>
>> HTH,
>> OldAl.
>>
>>      
>>> If it
>>> consists of some wrapped C/C++ sources you should ask Phil Thompson (or
>>> the PyQt mailing list) how he generated the API files for the different
>>> Python variants.
>>>
>>> Regards,
>>> Detlev
>>>
>>>        
>>>> Thanks!
>>>>
>>>> On 12/21/2009 11:13 PM, detlev wrote:
>>>>          
>>>>> On Dienstag, 22. Dezember 2009, reckoner wrote:
>>>>>            
>>>>>> Hi,
>>>>>>
>>>>>> I'm just getting started with eric4. I can see how to complete for
>>>>>> the standard library in the editor, but how would I accomplish
>>>>>> completion for modules like numpy? In other words, how would I get
>>>>>>
>>>>>> numpy.<TAB><TAB>
>>>>>>
>>>>>> to offer completions as it does with
>>>>>>
>>>>>> string.<TAB><TAB>
>>>>>>
>>>>>> I searched through the mailing list archives, but I didn't find
>>>>>> anything that looked up to date or helpful on this topic.
>>>>>>
>>>>>> Maybe I'm missing something.
>>>>>>              
>>>>> You are missing an API file for numpy. Unfortunately nobody has
>>>>> created one yet. Any volunteer out there?
>>>>>
>>>>> Regards,
>>>>> Detlev
>>>>>            
>>      
>
>    


More information about the Eric mailing list