用于ipython/jupyter显示导入模块的名称和版本的cell magic命令
iversions的Python项目详细描述
变化
用于ipython/jupyter显示 当前会话中的所有导入(非内置)模块。
安装
$ pip install iversions
用法
In[1]:%load_extiversionsIn[2]:importnumpyasnp...:importpandasaspd...:importtensorflowastf...:importos...:importsysIn[3]:%iversionsnumpy1.13.1pandas0.20.3tensorflow1.3.0Python3.6.2[SunAug27,201713:50:43]In[4]:
灵感来自惊人的类似项目:
待办事项
- 将要输出的功能添加到requirements.txt
已知问题
- 非模块导入不起作用,例如from X import Y