The list of libraries is cached, because discovering them all is quite slow. If you installed your library after the cache was built, it won't be there. The magic command %rehashx should clear the cache, and it will be regenerated the next time you try to tab complete 'import x'.<br>
<br>Thomas<br><div class="gmail_extra"><br><br><div class="gmail_quote">On 23 November 2012 09:36, Michael Aye <span dir="ltr"><<a href="mailto:kmichael.aye@gmail.com" target="_blank">kmichael.aye@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="HOEnZb"><div class="h5">On 2012-11-23 06:04:29 +0000, David Warde-Farley said:<br>
<br>
> On Thu, Nov 22, 2012 at 10:57 PM, Michael Aye <<a href="mailto:kmichael.aye@gmail.com">kmichael.aye@gmail.com</a>> wrote:<br>
> First I thought it has something to do with my libraries not being in<br>
> my PYTHONPATH yet, but after adding, ipython still does not<br>
> tab-complete my own libraries, even so it finds them alright.<br>
><br>
> Interestingly this works fine on my Macbook, the problem occurs on our<br>
> CentOS linux server, running EPD 7.3-1. (Same as on the Macbook).<br>
><br>
> So what really controls if a library can be tab-completed?<br>
><br>
> Just to be sure, have you imported these libraries in the current<br>
> IPython session? Tab completion doesn't work until an object actually<br>
> exists (which is basically a limitation of Python being a dynamic<br>
> language), so if the import statement hasn't been executed, it won't<br>
> work.<br>
<br>
</div></div>Not true, I can use tab-completion already at the time of import, which<br>
is what I am talking about here, sorry if that was unclear.<br>
Try it for yourself:<br>
<br>
In [1]: import c<br>
cPickle chaco commands crypt<br>
cProfile check_ctx_boundaries compileall csv<br>
cStringIO chunk compiler<br>
ctx_and_mola<br>
cairo cloud configobj ctx_isis<br>
calendar cmath contextlib ctypes<br>
calib cmd cookielib<br>
cube_loader<br>
calib_compare code copy curses<br>
canny codecs copy_files_from_input<br>
custom_fixers<br>
casuarius codeop copy_reg<br>
custom_tools<br>
cfmfile codetools coreg_value_writer cython<br>
cgi collections coregister<br>
cythonmagic<br>
cgitb colorsys coverage<br>
<br>
Michael<br>
<br>
><br>
> David<br>
<div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> IPython-User mailing list<br>
> <a href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a><br>
> <a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
<br>
<br>
<br>
_______________________________________________<br>
IPython-User mailing list<br>
<a href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
</div></div></blockquote></div><br></div>