[IPython-dev] Interactive magic cells

Akim Demaille akim at lrde.epita.fr
Fri Jul 18 03:25:23 EDT 2014

[Resend: I sent the message without having subscribed, and my
message never showed up, and I never received a message telling
me that I needed to be member to post.  The info page of the list
does not mention that either, I think it should.]

Hi all,

I'm working on an interactive (textual) means to edit an automaton
in the notebooks.  It looks like this:

I'm using a TextareaWidget to let the user type in her automaton,
and an HTMLWidget for te SVG output from dot.  It is interactive
in that I use on_trait_change on the text area to decide whether
to update the output.

I have two questions: is there a simple means to control the frequency
of the updates?  When the user is typing, I don't need to receive all
the updates, waiting for a quiet period should be enough.  But this
I guess I can't do by myself, don't worry.

My real question is: I'd like to avoid the text area and rather
have a cell magic that would look like:

I can easily do that with usual cell magic functions, but I'd like
to have auto evaluation, so that we don't have to wait for the user
to hit shift-enter.  Is there a means to do that?

Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140718/dad35624/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-5.png
Type: image/png
Size: 45383 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140718/dad35624/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-2.png
Type: image/png
Size: 37240 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140718/dad35624/attachment-0001.png>

More information about the IPython-dev mailing list