def get_ipython_version():
"""Returns the current IPython version"""
import IPython
v = None
if hasattr(IPython, "version_info"):
v = '.'.join(map(str, IPython.version_info[:3]))
else:
try:
try:
v = IPython.Release.version
except:
try:
v = IPython.release.version
except:
pass
except:
pass
return StrictVersion(v)
# PyTango utilities
评论列表
文章目录