简体   繁体   English

删除外部IPython Notebook魔术扩展

[英]Removing an external IPython notebook magic extension

I was wondering how external IPython magic extensions can be removed once installed. 我想知道安装后如何删除外部IPython magic扩展。

Eg, let's say I used the deprecated %load_ext magic function to install a package 例如,假设我使用了已弃用的%load_ext魔术函数来安装软件包

%install_ext path/to/the/some_package.py

I assume that this package.py extension will now be stored locally somewhere ... I did a search for "some_package.py" in the IPython dir but couldn't find anything. 我假设这个package.py扩展名现在将存储在本地某个地方……我在IPython目录中搜索了“ some_package.py”,但找不到任何东西。 Anyways, do you have any tips for how to get rid of this "some_package.py" once installed? 无论如何,一旦安装,您对如何摆脱此“ some_package.py”有什么建议吗?

Okay found it. 好的,找到它了。 By default, the extensions are installed as .pyc files in .ipython/extensions/ 默认情况下,扩展名以.pyc文件形式安装在.ipython/extensions/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM