Giter Club home page Giter Club logo

Comments (3)

takluyver avatar takluyver commented on July 19, 2024

If you run jupyter nbextension disable cite2c/main, it won't be loaded. It will still be left on your system - we haven't really thought about a mechanism to uninstall nbextensions - but if it's not loaded, it should have no effect.

from cite2c.

kirk86 avatar kirk86 commented on July 19, 2024

This is important, now jupyter-lab has a context menu showing plugins and others you might want to discover similar to VSCode, but with the limitation that there's not way to easily uninstall plugins through a button similar to VSCode where you can install and uninstall plugins at will freely without any hassle.

Maybe this should be put for discussion with jupyter-lab community and maintainers?

from cite2c.

kirk86 avatar kirk86 commented on July 19, 2024

For instance in my case I had previously installed cite2c in a conda environment along with jupyter-lab.
Then completely removed that conda env and re-installed everything fresh, jupyter-lab, etc..., but without cite2c.
Now whenever I start jupyter-lab I keep getting the following errors, seems like some config files from cite2c still left on my system.

Any idea how to remove those?

[W 2022-12-24 13:16:51.725 ServerApp] cite2c.handlers | error adding extension (enabled: True): The module 'cite2c.handlers' could not be found (No module named 'cite2c'). Are you sure the extension is installed?
    Traceback (most recent call last):
      File "/home/user/anaconda/envs/myenv/lib/python3.10/site-packages/jupyter_server/extension/manager.py", line 175, in _validate_name
        self._module, self._metadata = get_metadata(name)
      File "/home/user/anaconda/envs/myenv/lib/python3.10/site-packages/jupyter_server/extension/utils.py", line 55, in get_metadata
        module = importlib.import_module(package_name)
      File "/home/user/anaconda/envs/myenv/lib/python3.10/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
      File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
      File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
      File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
      File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'cite2c'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/home/user/anaconda/envs/myenv/lib/python3.10/site-packages/jupyter_server/extension/manager.py", line 320, in add_extension
        extpkg = ExtensionPackage(name=extension_name, enabled=enabled)
      File "/home/user/anaconda/envs/myenv/lib/python3.10/site-packages/jupyter_server/extension/manager.py", line 166, in __init__
        super().__init__(*args, **kwargs)
      File "/home/user/anaconda/envs/myenv/lib/python3.10/site-packages/traitlets/traitlets.py", line 1357, in __init__
        value = self._traits[key]._cross_validate(self, getattr(self, key))
      File "/home/user/anaconda/envs/myenv/lib/python3.10/site-packages/traitlets/traitlets.py", line 743, in _cross_validate
        value = obj._trait_validators[self.name](obj, proposal)
      File "/home/user/anaconda/envs/myenv/lib/python3.10/site-packages/traitlets/traitlets.py", line 1229, in __call__
        return self.func(*args, **kwargs)
      File "/home/user/anaconda/envs/myenv/lib/python3.10/site-packages/jupyter_server/extension/manager.py", line 177, in _validate_name
        raise ExtensionModuleNotFound(
    jupyter_server.extension.utils.ExtensionModuleNotFound: The module 'cite2c.handlers' could not be found (No module named 'cite2c'). Are you sure the extension is installed?

from cite2c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.