IPython 未找到魔术扩展
IPython magic extension not found
我想使用 %load_ext schemadisplay_magic 查看数据库模式,然后使用 %schema 但 schemadisplay_magic 将加载。我收到一条错误消息:
没有名为 'schemadisplay_magic'
的模块
IPython 版本 5.8.0
我已经尝试查找它,但在任何地方都找不到任何相关信息。
%load_ext sql
%load_ext schemadisplay_magic
我希望能够加载 %schema,但我只是收到一条错误消息。
ModuleNotFoundError: 没有名为 'schemadisplay_magic'
的模块
似乎这种魔法是 innovationOUtside 的创造,尚未在 PyPi 上发布——这里是 git repository
您可以使用
安装它
pip install git+https://github.com/innovationOUtside/ipython_magic_sqlalchemy_schemadisplay.git#egg=ipython_magic_sqlalchemy_schemadisplay
我在已经安装了一堆东西的 virtualenv 中对其进行了测试,因此在干净的环境中这可能不是问题,但我发现我还需要将 sqlalchemy-schemadisplay
升级到 1.3 以上在 PyPi 上。我使用了这个命令:
pip install -U git+https://github.com/fschulze/sqlalchemy_schemadisplay.git#egg=sqlalchemy-schemadisplay
尝试将 ipython 魔法与 sqlalchemy-schemadisplay 1.3
一起使用会导致此错误:
TypeError: create_schema_graph() got an unexpected keyword argument 'restrict_tables'
我想使用 %load_ext schemadisplay_magic 查看数据库模式,然后使用 %schema 但 schemadisplay_magic 将加载。我收到一条错误消息:
没有名为 'schemadisplay_magic'
的模块IPython 版本 5.8.0
我已经尝试查找它,但在任何地方都找不到任何相关信息。
%load_ext sql
%load_ext schemadisplay_magic
我希望能够加载 %schema,但我只是收到一条错误消息。
ModuleNotFoundError: 没有名为 'schemadisplay_magic'
的模块似乎这种魔法是 innovationOUtside 的创造,尚未在 PyPi 上发布——这里是 git repository
您可以使用
安装它pip install git+https://github.com/innovationOUtside/ipython_magic_sqlalchemy_schemadisplay.git#egg=ipython_magic_sqlalchemy_schemadisplay
我在已经安装了一堆东西的 virtualenv 中对其进行了测试,因此在干净的环境中这可能不是问题,但我发现我还需要将 sqlalchemy-schemadisplay
升级到 1.3 以上在 PyPi 上。我使用了这个命令:
pip install -U git+https://github.com/fschulze/sqlalchemy_schemadisplay.git#egg=sqlalchemy-schemadisplay
尝试将 ipython 魔法与 sqlalchemy-schemadisplay 1.3
一起使用会导致此错误:
TypeError: create_schema_graph() got an unexpected keyword argument 'restrict_tables'