IPython cleanup fails with non-standard Client profile
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- distributed-systems
Research direction
Start in ipython_cleanup.py at cleanup_all and compare its IPythonClient instantiation with the Client(profile='distarray') setup shown in the reproduction. Run the profile, controller, engine, and script steps to confirm the failure; done means cleanup works with a non-standard Client profile without falling back to the default profile.
Written by the indexing model from the issue text.
Description
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'))
- Dominant language
- Python
- Stars
- 5
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from enthought/distarray
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 30/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 20/100
All issues in enthought/distarray
Similar issues
-
essnmx good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
[Feature] 奇物选择添加优先级 Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
syfoud/Simulated_Scepter#174 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Giskard-AI/giskard-oss#2840 · 1 comment ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Openarea: repo bug perceived difficulty: 2
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
yeti-platform/yeti#1380 ·