<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
@Aaron: A @public decorator seems really cool, it makes look code
really neat! I'll investigate how to include it in our PR.<br>
<br>
@Trevor: I think you are missing the point: these changes are not
meant for regular users but for projects that are using IPython as a
library. The idea is to put in __all__ the main pieces of qtconsole
(not only RichIPythonWidget, but also QtKernelManager,
QtKernelClient, etc) to tell those projects what elements they need
to rely on to build a customized frontend.<br>
<br>
Cheers,<br>
Carlos<br>
<br>
<div class="moz-cite-prefix">El 20/05/13 11:26, W. Trevor King
escribió:<br>
</div>
<blockquote cite="mid:20130520162654.GG23990@odin.tremily.us"
type="cite">
<pre wrap="">On Fri, May 17, 2013 at 11:19:47AM -0500, Carlos Córdoba wrote:
</pre>
<blockquote type="cite">
<pre wrap="">For us in Spyder it would be better to be able to import things like
RichIPythonWidget as
from IPython.frontend.qt import RichIPythonWidget
instead of
from IPython.qt.console.rich_ipython_widget import RichIPythonWidget
because even without "frontend" there are four levels of nested modules
to reach one of the most essential pieces of that frontend.
So why not add an __all__ attribute to each frontend instead?
</pre>
</blockquote>
<pre wrap="">
I've just been skimming this thread, but I'd caution against namespace
squashing for scripting things (not very DRY). If users are calling
RichIPythonWidget from their IPython session, then providing a
shortcut namespace is fine (à la Matplotlib's pylab [1]), but having
multiple script-oriented locations is just confusing. In this case,
it might be best to have:
from ._rich_ipython_widget import RichIPythonWidget
in IPython.qt.console (or IPython.qt?), which all consumers have to
use instead of importing the (now private) rich_ipython_widget module
directly.
Cheers,
Trevor
[1]: <a class="moz-txt-link-freetext" href="http://matplotlib.org/faq/usage_faq.html#matplotlib-pylab-and-pyplot-how-are-they-related">http://matplotlib.org/faq/usage_faq.html#matplotlib-pylab-and-pyplot-how-are-they-related</a>
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
IPython-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a>
<a class="moz-txt-link-freetext" href="http://mail.scipy.org/mailman/listinfo/ipython-dev">http://mail.scipy.org/mailman/listinfo/ipython-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>