enthought / enthought/distarray
IPython cleanup fails with non-standard Client profile
- Vorherrschende Sprache
- Python
- Sterne
- 5
- Forks
- 1
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
# Problem
The `IPythonClient` instantiation in `cleanup_all` in `ipython_cleanup.py` is problematic since the default profile is used:
``` python
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`
``` bash
$ ipython profile create --parallel --profile=distarray
```
Start up controller
``` bash
$ ipcontroller --ip='*' --profile=distarray
```
and engine
``` bash
$ ipcluster engines -n 1 --profile=distarray
```
The run the following script
``` python
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'))
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne in ipython_cleanup.py bei cleanup_all und vergleiche die Instanziierung von IPythonClient mit der im Reproduktionsbeispiel gezeigten Einrichtung von Client(profile='distarray'). Führe die Schritte für profile, controller, engine und script aus, um den Fehler zu bestätigen; abgeschlossen ist die Aufgabe, wenn cleanup mit einem nicht standardmäßigen Client-Profil funktioniert, ohne auf das Standardprofil zurückzufallen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- distributed-systems
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100