Jupyter notebook 干净地卸载损坏的jupyter nbextension

Jupyter notebook 干净地卸载损坏的jupyter nbextension,jupyter-notebook,ipython,jupyter,jupyter-contrib-nbextensions,Jupyter Notebook,Ipython,Jupyter,Jupyter Contrib Nbextensions,不久前,我安装了bikerx,一次更新破坏了安装。每次我启动IPython时,都会显示一条警告。我怎样才能干净地摆脱扩展和这个输出 [IPKernelApp] WARNING | Error in loading extension: beakerx.autotranslation Check your config files in /Users/cls/.ipython/profile_default Traceback (most recent call last):

不久前,我安装了
bikerx
,一次更新破坏了安装。每次我启动IPython时,都会显示一条警告。我怎样才能干净地摆脱扩展和这个输出

  [IPKernelApp] WARNING | Error in loading extension: beakerx.autotranslation
    Check your config files in /Users/cls/.ipython/profile_default
    Traceback (most recent call last):
      File "/Users/cls/anaconda3/lib/python3.6/site-packages/IPython/core/shellapp.py", line 261, in init_extensions
        self.shell.extension_manager.load_extension(ext)
      File "/Users/cls/anaconda3/lib/python3.6/site-packages/IPython/core/extensions.py", line 80, in load_extension
        mod = import_module(module_str)
      File "/Users/cls/anaconda3/lib/python3.6/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 994, in _gcd_import
      File "<frozen importlib._bootstrap>", line 971, in _find_and_load
      File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "<frozen importlib._bootstrap>", line 994, in _gcd_import
      File "<frozen importlib._bootstrap>", line 971, in _find_and_load
      File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'beakerx'
    [IPKernelApp] WARNING | Error in loading extension: beakerx_magics.kernel_magic
    Check your config files in /Users/cls/.ipython/profile_default
    Traceback (most recent call last):
      File "/Users/cls/anaconda3/lib/python3.6/site-packages/IPython/core/shellapp.py", line 261, in init_extensions
        self.shell.extension_manager.load_extension(ext)
      File "/Users/cls/anaconda3/lib/python3.6/site-packages/IPython/core/extensions.py", line 80, in load_extension
        mod = import_module(module_str)
      File "/Users/cls/anaconda3/lib/python3.6/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 994, in _gcd_import
      File "<frozen importlib._bootstrap>", line 971, in _find_and_load
      File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "<frozen importlib._bootstrap>", line 994, in _gcd_import
      File "<frozen importlib._bootstrap>", line 971, in _find_and_load
      File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'beakerx_magics'
[IPKernelApp]警告|加载扩展名时出错:bikerx.autotranslation
在/Users/cls/.ipython/profile\u default中检查配置文件
回溯(最近一次呼叫最后一次):
文件“/Users/cls/anaconda3/lib/python3.6/site packages/IPython/core/shellapp.py”,第261行,初始扩展名
self.shell.extension\u manager.load\u extension(ext)
文件“/Users/cls/anaconda3/lib/python3.6/site packages/IPython/core/extensions.py”,第80行,加载扩展名
mod=导入模块(模块str)
文件“/Users/cls/anaconda3/lib/python3.6/importlib/_init__.py”,第126行,在导入模块中
return _bootstrap._gcd_import(名称[级别:],包,级别)
文件“”,第994行,在_gcd_导入中
文件“”,第971行,在_find_和_load中
文件“”,第941行,在“查找”和“加载”中解锁
文件“”,第219行,在“调用”中,删除了“帧”
文件“”,第994行,在_gcd_导入中
文件“”,第971行,在_find_和_load中
文件“”,第953行,在“查找”和“加载”中解锁
ModuleNotFoundError:没有名为“烧杯X”的模块
[IPKernelApp]警告|加载扩展时出错:bikerx_magics.kernel_magic
在/Users/cls/.ipython/profile\u default中检查配置文件
回溯(最近一次呼叫最后一次):
文件“/Users/cls/anaconda3/lib/python3.6/site packages/IPython/core/shellapp.py”,第261行,初始扩展名
self.shell.extension\u manager.load\u extension(ext)
文件“/Users/cls/anaconda3/lib/python3.6/site packages/IPython/core/extensions.py”,第80行,加载扩展名
mod=导入模块(模块str)
文件“/Users/cls/anaconda3/lib/python3.6/importlib/_init__.py”,第126行,在导入模块中
return _bootstrap._gcd_import(名称[级别:],包,级别)
文件“”,第994行,在_gcd_导入中
文件“”,第971行,在_find_和_load中
文件“”,第941行,在“查找”和“加载”中解锁
文件“”,第219行,在“调用”中,删除了“帧”
文件“”,第994行,在_gcd_导入中
文件“”,第971行,在_find_和_load中
文件“”,第953行,在“查找”和“加载”中解锁
ModuleNotFoundError:没有名为'Bikerx_magics'的模块
之后,我在我的virtualenv的根目录下运行了
grep-r bikerx*
,发现了以下碎片:

etc/jupyter/jupyter_notebook_config.json:      "beakerx": false
etc/ipython/ipython_config.py:c.InteractiveShellApp.extensions = ['beakerx.autotranslation',
etc/ipython/ipython_config.py:'beakerx_magics.kernel_magic',
etc/ipython/ipython_config.py:'beakerx_magics.groovy_magic',
etc/ipython/ipython_config.py:'beakerx_magics.clojure_magic',
etc/ipython/ipython_config.py:'beakerx_magics.kotlin_magic',
etc/ipython/ipython_config.py:'beakerx_magics.scala_magic',
etc/ipython/ipython_config.py:'beakerx_magics.sql_magic',
etc/ipython/ipython_config.py:'beakerx_magics.java_magic'
我从上述文件中删除了有问题的行,错误消息消失了

对于
ipython\u config.py

c = get_config()
c.InteractiveShellApp.extensions = [
]
对于
jupyter\u notebook\u config.json

{
  "NotebookApp": {
    "nbserver_extensions": {
    }
  },
  "KernelSpecManager": {}
}