IPython cleanup fails with non-standard Client profile

オープン
#655 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

ipython_cleanup.py の cleanup_all から始め、再現手順に示されている Client(profile='distarray') の設定と IPythonClient のインスタンス化を比較します。profile、controller、engine、script の手順を実行して失敗を確認します。cleanup が標準ではない Client プロファイルで、デフォルトプロファイルにフォールバックせずに動作すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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'))
主要言語
Python
スター
5
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

enthought/distarray のほかの issue

enthought/distarray の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。