Hi Jonas,
I agree that Spyder is way more capable than Coder - I use it a fair
bit myself.
Concerns;
- time spent packaging/integrating this (specifically, I don't
have it ;-) )
- will it be too much for a beginner? For a less-advanced
programmer the simplicity of Coder is kinda nice, although code
inspection using rope be useful and doesn't introduce complexity.
More competent programmers can probably download Spyder themselves?
- when a script is run, does spyder increase overhead,
potentially making performance worse? ie can we turn off things like
the code inspection while running?
I feel like it's handy to have a basic editor built-in and we just
point out to people that Spyder is a useful more-advanced editor
that can run alongside PsychoPy. We could add notes to this effect
in the Coder documentation, and in the tips window. There are
commercial packages, like WingIDE and PyCharm that are even more
powerful than Spyder. I personally sitll use Coder itself for simple
tasks, checking a script etc, and then switch to Spyder or PyCharm
if I'm doing some hard grind.
Jon
On 04/11/2012 22:34, Jonas Lindeløv
wrote:
I'd like to hear your oppinions on replacing
Coder with Spyder (= Scientific Python Editor)? Spyder has some
very neat features that makes coding a breeze. Me and several of
my collegues are using Spyder for psychopy scripting now.
Essential features:
- Object documentation
(lower left in screenshot for TextStim). Saves a huge
amount of time browsing the API on psychopy.org.
- Autocompletion -
also on instances of objects ("stim" which is a TextStim
in screenshot). Also saves a lot of time.
- Syntax warnings and
errors in UI (see line 8 in screenshot: "core imported
but unused")
Other nice features:
- Tabbed outputs - one
for every open script
- Uses system font as
default
- Flexible layout (I
grouped history, dir, variables and docs to the lower
left, as you can see)
- Variable explorer
- Command history
- Script profiling,
interactive debugging etc.
What's missing in Spyder: Spyder does not have
links to Monitor Center, Demos or Color Picker. This might
be incorporated in the Spyder version shipped with PsychoPy.
But a simpler approach would be to consider Builder the ONLY
user interface of psychopy. Of these missing features,
accessing demos is the only of these I consider a real
disadvantage to replacing Coder with Spyder. However, I
expect that the slope of the learning curve for beginners is
reduced more by the in-window documentation, autocompletion
and errors/warnings than the menu with links to demos.
What do you think?
(Note: Simon's recent post in psychopy-users on Spyder was
fixed by reinstalling psychopy. Spyder now imports psychopy)