def is_ipython_versionorgreater(major, minor):
"""checks if we are at least a specific IPython version"""
match = re.match('(\d+).(\d+)', IPython.__version__)
if match:
groups = match.groups()
if int(groups[0]) > major:
return True
elif int(groups[0]) == major:
return int(groups[1]) >= minor
return False
visualstudio_ipython_repl.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录