<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<blockquote type="cite">
<div><br>
</div>
<div>Are you sure that you're not telling IPython to do that in
your config files? For example, you might have the pylab value
set in your ipython_notebook_config.py:</div>
<div><br>
</div>
<div> c.IPKernelApp.pylab = 'inline'</div>
</blockquote>
That's the problem - I start the notebook server with the
--pylab=inline option to allow for matplotlib graphics to show up
inline as per the documentation:
<a class="moz-txt-link-freetext" href="http://ipython.org/ipython-doc/stable/interactive/htmlnotebook.html">http://ipython.org/ipython-doc/stable/interactive/htmlnotebook.html</a><br>
<br>
I don't understand what the option does other than that, so I didn't
realize that it came with side effects like those below. I don't
suppose there's any way to set the notebook up so plots are
displayed inline without masking the builtin functions? If not,
would <br>
<br>
any = __builtins__.any<br>
all = __builtins__.all<br>
<br>
possibly break the inline plotting?<br>
<br>
Cheers, g<br>
<br>
<br>
On 7/27/2012 11:48 AM, Tony Yu wrote:
<blockquote
cite="mid:CAEym_HrRo9e-a5sntGL9syGTobUd9OBjysHPhMV=jmrLWgX_nA@mail.gmail.com"
type="cite"><br>
<br>
<div class="gmail_quote">On Fri, Jul 27, 2012 at 2:37 PM,
Junkshops <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:junkshops@gmail.com" target="_blank">junkshops@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
-bash-4.1$ python<br>
Python 2.6.6 (r266:84292, Jun 18 2012, 14:18:47)<br>
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2<br>
Type "help", "copyright", "credits" or "license" for more
information.<br>
>>> any<br>
<built-in function any><br>
>>> all<br>
<built-in function all><br>
<br>
-bash-4.1$ ipython<br>
Python 2.6.6 (r266:84292, Jun 18 2012, 14:18:47)<br>
Type "copyright", "credits" or "license" for more information.<br>
<br>
IPython 0.13 -- An enhanced Interactive Python.<br>
*snip*<br>
<br>
In [1]: any<br>
Out[1]: <function any><br>
<br>
In [2]: all<br>
Out[2]: <function all><br>
<br>
In a new notebook:<br>
In [1]: any<br>
<br>
Out[1]: <function numpy.core.fromnumeric.any><br>
<br>
In [2]: all<br>
<br>
Out[2]: <function numpy.core.fromnumeric.all><br>
<br>
For some reason the builtins are masked by the numpy functions
even when<br>
numpy isn't explicitly imported.<br>
<br>
-g<br>
<br>
</blockquote>
<div><br>
</div>
<div>Are you sure that you're not telling IPython to do that in
your config files? For example, you might have the pylab value
set in your ipython_notebook_config.py:</div>
<div><br>
</div>
<div> c.IPKernelApp.pylab = 'inline'</div>
<div><br>
</div>
<div>-Tony</div>
<div> </div>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
IPython-User mailing list
<a class="moz-txt-link-abbreviated" href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a>
<a class="moz-txt-link-freetext" href="http://mail.scipy.org/mailman/listinfo/ipython-user">http://mail.scipy.org/mailman/listinfo/ipython-user</a>
</pre>
</blockquote>
</body>
</html>