Yeah, the widget could be a toolbar (floating or not). It's just that it 
could hold more than greek characters only.

About operators, I meant that some glyphs are not usable as variable names 
in python. Greek letters are fine, but you can't use √ for square root for 
example.

See http://stackoverflow.com/a/7158999/1410529 and 
http://stackoverflow.com/a/24343050/1410529 for example.

Joseph

Le mercredi 17 décembre 2014 13:10:30 UTC+1, Jonatan Hjul a écrit :
>
> In mathcad there actually is toolbar (or "floating" toolbar) with all the 
> greek letters, but maybe a widget is actually that....
>
> I do also try to avoid 1-letter variable names, but when you actually do 
> evaluate equations and want to have a 1-to-1 mapping to some formula in a 
> textbook I think it makes sense.
>
> Regarding letters used as operators, I do think they should be included. 
> Maybe you want to define af function Δ acting as the Laplace operator?
>
> /Jonatan
>
>
>
> Tirsdag den 16. december 2014 22.43.09 UTC+1 skrev Joseph Martinot-Lagarde:
>>
>> Le 15/12/2014 22:33, Jonatan Hjul a écrit : 
>> > I have just installed python3 on one of my machines to experiment a 
>> bit. 
>> > 
>> > One of the great things about python3 is support for unicode variables, 
>> > so we can now define some diameter as ø = 3 or the standard deviation 
>> as 
>> > σ = 3.5. Now we definitely have a lot of strange symbols on different 
>> > keyboards, but I guess most people using spyder is familiar with greek 
>> > letters. 
>> > 
>> > So maybe a greek toolbar would be useful in the python3 version? 
>> > 
>> > And maybe we should have a shortcuts like ctrl+g to convert from latin 
>> > to greek letters like in mathcad (i.e. "s" followed by ctrl+g results 
>> in 
>> > "σ"). 
>> > 
>> > In the python2 version it could be disabled or just convert to "sigma". 
>> > 
>> > What do you think? 
>> > 
>> > /Jonatan 
>>
>> A greek toolbar would have way too much buttons. I'd prefer a widget to 
>> insert special characters, including greek ones. This should be easilly 
>> doable as a plugin. Some characters are considered "operators" rather 
>> than characters so these should not be included. 
>>
>> Convert from latin to greek with a shortcut is a great idea ! I 
>> personally tend to avoid 1-letter variable names but I see how it could 
>> be useful. 
>>
>> Joseph 
>>
>>

-- 
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