ipy_autoreload %aimport doesn't handle submodules properly

Bug #377355 reported by Pauli Virtanen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IPython
Fix Committed
Undecided
Unassigned

Bug Description

The %aimport from autoreload extension doesn't import submodules correctly:

In [1]: import ipy_autoreload

In [2]: %aimport numpy.linalg

In [3]: numpy.linalg
------------------------------------------------------------
Traceback (most recent call last):
  File "<ipython console>", line 1, in <module>
NameError: name 'numpy' is not defined

This is fixed in lp:~pauli-virtanen/ipython/ipython-autoreload:

In [1]: import ipy_autoreload

In [2]: %aimport numpy.linalg

In [3]: numpy.linalg
Out[3]: <module 'numpy.linalg' from '/usr/lib/python2.6/dist-packages/numpy/linalg/__init__.pyc'>

Changed in ipython:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.