Skip to content

Shim warning when using IPython >= 4.0.0 #1451

Closed
@jpellman

Description

@jpellman

One of our C-PAC users came across the following deprecation warning during their pipeline run:

/clusterdata/apps/anaconda/lib/python2.7/site-packages/IPython/kernel/init.py:13: ShimWarning: The IPython.kernel package has been deprecated. You should import from ipykernel or jupyter_client instead.

"You should import from ipykernel or jupyter_client instead.", ShimWarning)

/clusterdata/apps/anaconda/lib/python2.7/site-packages/IPython/parallel.py:13: ShimWarning: The IPython.parallel package has been deprecated. You should import from ipyparallel instead.

"You should import from ipyparallel instead.", ShimWarning)

I was able to determine that this is because, starting in IPython 4.0.0, the IPython developers have chosen to separate IPython.parallel and IPython.kernel into separate packages. Is there some way that nipype could take this into account by determining if the IPython version number is >= 4.0.0, stopping execution if so (and the packages are not installed), and warning users to download these two packages (or some other appropriate behavior)? If the packages are installed, the new import statements could be used instead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions