<br><br><div class="gmail_quote">On Tue, Jun 19, 2012 at 9:54 PM, Jason Grout <span dir="ltr"><<a href="mailto:jason-sage@creativetrax.com" target="_blank">jason-sage@creativetrax.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I'm working on getting the 0.13beta1 to work with Sage.  One problem is<br>
that the InteractiveShell code assumes that the input splitter has a<br>
.cell_magic_parts attribute (see line 2559 of<br>
IPython/core/interactiveshell.py).  Now, this is not an attribute of<br>
InputSplitter, but is an attribute of IPythonInputSplitter.  Do we have<br>
to depend on having this attribute, or should InteractiveShell first<br>
check for the existence of this attribute?  In Sage, we have our own<br>
SageInputSplitter which inherits directly from InputSplitter, and so we<br>
don't have the .cell_magic_parts attribute.<br>
<br>
In other words, how decoupled do you want InteractiveShell and the<br>
IPythonInputSplitter subclass of InputSplitter?<br></blockquote><div><br></div><div>I think we can just set InputSplitter.cell_magic_parts = None, so that it's clearly defined as an unused part of the public input splitter api.</div>

<div><br></div><div>or we use getattr in InteractiveShell, but I think we generally try to avoid that.</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
Thanks,<br>
<br>
Jason<br>
_______________________________________________<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>
</blockquote></div><br>