<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I agree with Stéfan: removing "frontend" isn't much of a help,
because it has a compelling and easy meaning to grasp.<br>
<br>
For us in Spyder it would be better to be able to import
<meta name="qrichtext" content="1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>things like RichIPythonWidget as<br>
<br>
<meta name="qrichtext" content="1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>from IPython.frontend.qt import RichIPythonWidget<br>
<br>
instead of<br>
<br>
from IPython.qt.console.rich_ipython_widget
<meta name="qrichtext" content="1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style> import RichIPythonWidget<br>
<br>
because even without "frontend" there are four levels of nested
modules to reach one of the most essential pieces of that frontend.<br>
<br>
So why not add an __all__ attribute to each frontend instead?<br>
<br>
Cheers,<br>
Carlos<br>
<br>
<div class="moz-cite-prefix">El 17/05/13 02:44, Stéfan van der Walt
escribió:<br>
</div>
<blockquote
cite="mid:CABDkGQnWvxTv5rZJcpX51kuC3BjbWzUf7kf__m306jGLv2kNCA@mail.gmail.com"
type="cite">
<pre wrap="">On Fri, May 17, 2013 at 2:51 AM, Brian Granger <a class="moz-txt-link-rfc2396E" href="mailto:ellisonbg@gmail.com"><ellisonbg@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">During that discussion we ended up talking about the deep nesting that
we have in IPython.frontend
Deep inside the notebook frontend, we end up with imports of the sort:
IPython.frontend.html.notebook.handlers
The qt frontend has similarly deep nesting.
To solve this problem, we decided to flatten this out a bit. Here is
what we decided:
IPython.frontend.qt -> IPython.qt
IPython.frontend.html.notebook -> IPython.html
IPython.frontend.terminal -> IPython.terminal
</pre>
</blockquote>
<pre wrap="">
That seems like a minor saving when measured against the loss of
structure. When I see "ipython.frontend.qt" I know exactly what you
mean, whereas "IPython.qt" doesn't evoke anything specific. Isn't the
nesting problem rather deeper down, i.e. under qt, html and terminal?
Stéfan
_______________________________________________
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>