これは、graph_tool をいじっているときに気付きました。一部のモジュール属性は、ipython から実行した場合にのみ使用できるようです。最も単純な例 (example.py)
import graph_tool as gt
g = gt.Graph()
gt.draw.sfdp_layout(g)
run example.y', but from the command line,
python example.py` yieldsを使用して ipython からエラーなしで実行されます
AttributeError: 'module' object has no attribute 'draw'
についても同様ですipython example.py
。何が原因なのか途方に暮れています。from graph_tool.draw import *
描画モジュールにアクセスしたいのですが、ヘルプや説明を介してしかアクセスできないようです。