wouldn't a %%fricas cell magic get the whole text of the cell and be able to process %pi in a different manner than what IPython does now ?<br><br><br><div class="gmail_quote">On Thu, May 31, 2012 at 11:02 PM, Ralf Hemmecke <span dir="ltr"><<a href="mailto:hemmecke@gmail.com" target="_blank">hemmecke@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 05/31/2012 10:49 PM, Thomas Kluyver wrote:<br>
> On 31 May 2012 21:32, Ralf Hemmecke<<a href="mailto:hemmecke@gmail.com">hemmecke@gmail.com</a>> wrote:<br>
>> Anyway, if the ipython notebook should some day be able to be used as a<br>
>> frontend for maple or mathematica then %, %% and %%% are bad, because of<br>
>> their meaning inside the respective system.<br>
><br>
> As far as I know, the notebook itself doesn't know about the escape<br>
> sequences - that's all processed in the kernel. A hypothetical maple<br>
> or mathematica kernel wouldn't process ipython escape sequences, so it<br>
> shouldn't be an issue.<br>
<br>
</div>That maple/mathematica wouldn't process or even see magic sequences is<br>
clear. I am more afraid of the fact that input/output lines of<br>
mathematica/maple/fricas could confuse the program part that deals with<br>
magic lines. Just suppose my notebook simply contains a cell that only<br>
has the line<br>
<br>
%pi<br>
<br>
I don't yet know what ipython would be doing with that line, but it<br>
looks like magic so I guess that cell would be empty if it is seen by<br>
the fricas engine. Am I wrong? But I'd like fricas to see '%pi'.<br>
<span class="HOEnZb"><font color="#888888"><br>
Ralf<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</div></div></blockquote></div><br>