1 Star 0 Fork 7

bitswall/pyfolio

forked from 云金杞/pyfolio 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ipycompat.py 581 Bytes
一键复制 编辑 原始数据 按行查看 历史
import IPython
IPY_MAJOR = IPython.version_info[0]
if IPY_MAJOR < 3:
raise ImportError("IPython version %d is not supported." % IPY_MAJOR)
IPY3 = (IPY_MAJOR == 3)
# IPython underwent a major refactor between versions 3 and 4. Many of the
# imports in version 4 have aliases to their old locations in 3, but they raise
# noisy deprecation warnings. By conditionally importing here, we can support
# older versions without triggering warnings for users on new versions.
if IPY3:
from IPython.nbformat import read
else:
from nbformat import read
__all__ = ['read']
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/bitswall/pyfolio.git
git@gitee.com:bitswall/pyfolio.git
bitswall
pyfolio
pyfolio
master

搜索帮助