Skip to content

IPython cleanup fails with non-standard Client profile #655

Open

Description

@sjperkins

Problem

The IPythonClient instantiation in cleanup_all in ipython_cleanup.py is problematic since the default profile is used:

def cleanup_all(module_name, prefix):
    """ Connects to all engines and runs ``cleanup()`` on them. """
    c = IPythonClient()
    if c is None:
        return
    try:
        v = c[:]
        cleanup(v, module_name, prefix)
    finally:
        c.close()

Steps to Reproduce

Create a new ipython profile distarray

$ ipython profile create --parallel --profile=distarray

Start up controller

$ ipcontroller --ip='*' --profile=distarray

and engine

$ ipcluster engines -n 1 --profile=distarray

The run the following script

import numpy as np

import distarray.globalapi

from distarray.globalapi import Context, Distribution
from distarray.globalapi.ipython_utils import IPythonClient as Client

context = Context(client=Client(profile='distarray'))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions