"editor awesomeness" will not be traded! :)

For you idea on "array-mode" I can look at it in 2 ways and also it depends 
whether you are talking about the editor or the ipython console, we can 
handle the editor case, and the ipython should be discussed directly with 
the guys at ipython.

Spyder concern.... the Editor

*How often is people actually writing matrices/array by hand on the editor?*
I would say that true that it is slightly long /annoying to write an array 
in Python syntax, but when dealing with matrices or scripts/code that deals 
with matrices, you are more often than operating on a matrix 
produced/imported by other means, i.e. a picture, a NetCDF file, etc. From 
this point of view I would say having this feature is not so important...

*But even if it used sparingly why not making a convenience tool for it?*
Lets assume now that we agree that something should be done about it,... 
then in this case what I would like to have as an user would be a shortcut 
to enter a matrix in a Matlab Like format to save me the time, and then 
when hitting enter, it would get transformed to the correct python syntax. 
This "array-mode" would be a small modal dialog that would pop up on the 
place the cursor is located. It would have to be small and unobtrusive 
enough so that the work-flow is not heavily affected. 

We could settle for the convention *np.r_, or numpy.r*, or whatever in the 
preferences. or we could event look for this in the module imports, so if 
you try to enter and array, the document would try to find either *np.r_ or 
**numpy.r*, and if it is not found, then it could be either added 
automatically at the top of the file (not my favorite) or advice the user 
to do it.

So it would be something like...

Writing some code, writing some code, Control+M, (type array in matlab 
format) [1 2 5; 4 5 6; 1 2 3], click enter  (automatically convert to 
python syntax), keep writing code...

This is the way I would like it to be for the way I work. is this something 
that you could find useful?

Now the same process could be done in the ipython console.

Cheers






-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to