Hi Doug,
Both these questions belong more to IPython than to Spyder. I'll try to
give you some starting points, hoping they are useful for you:
1. To define your own magics, please see this link:
http://ipython.org/ipython-doc/stable/interactive/reference.html#defining-your-own-magics
2. Changing promtps based on user actions seems a little harder. For
that you'll need to dig into IPython and Spyder code. I think you'll
have to connect to the "executing" signal of the ipython_widget, like here:
http://code.google.com/p/spyderlib/source/browse/spyderlib/plugins/ipythonconsole.py#407
and then try to change the prompt according to the sent command, perhaps
redefining this method:
https://github.com/ipython/ipython/blob/master/IPython/frontend/qt/console/ipython_widget.py#L500
Cheers,
Carlos
El 10/12/12 17:39, Doug Bonar escribió:
I'm new to Spyder, but I'm looking for a Python editor linked to a
console, so it seems promising. I have been using Emacs and IPython
in working with a scripting system, but I would like something a bit
more cohesive to point others towards.
There are two things I would like to experiment with:
1. extending the 'magic' commands that are recognized
2. changing the prompt based on users actions
Is there anything set up for this already or should I dig into the
code? If the code is the best place, are there any pointers to how to
start with it?
Thanks,
--
You received this message because you are subscribed to the Google
Groups "spyder" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/spyderlib/-/TIojXFBLoLkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/spyderlib?hl=en.
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/spyderlib?hl=en.