common.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:itango 作者: tango-controls 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号