Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jupyter labextension uninstall --all? #6006

Closed
jtpio opened this issue Feb 19, 2019 · 3 comments
Closed

jupyter labextension uninstall --all? #6006

jtpio opened this issue Feb 19, 2019 · 3 comments

Comments

@jtpio
Copy link
Member

@jtpio jtpio commented Feb 19, 2019

Similar to jupyter labextension update --all, it would be useful to be able to uninstall all the extensions at once without recreating a conda environment.

@vidartf
Copy link
Member

@vidartf vidartf commented Feb 20, 2019

Good idea! The code for the update subcommand can serve as a decent base for what changes to do to the uninstall subcommand. Relevant place to start looking:

def uninstall_extension(name, app_dir=None, logger=None):
"""Uninstall an extension by name or path.
Returns `True` if a rebuild is recommended, `False` otherwise.
"""
logger = _ensure_logger(logger)
_node_check(logger)
handler = _AppHandler(app_dir, logger)
return handler.uninstall_extension(name)
def update_extension(name=None, all_=False, app_dir=None, logger=None):
"""Update an extension by name, or all extensions.
Either `name` must be given as a string, or `all_` must be `True`.
If `all_` is `True`, the value of `name` is ignored.
Returns `True` if a rebuild is recommended, `False` otherwise.
"""
logger = _ensure_logger(logger)
_node_check(logger)
handler = _AppHandler(app_dir, logger)
if all_ is True:
return handler.update_all_extensions()
return handler.update_extension(name)

Loading

@jasongrout jasongrout added this to the Future milestone Feb 24, 2019
@Madhu94
Copy link
Collaborator

@Madhu94 Madhu94 commented Mar 2, 2019

I'm picking this up.

Loading

@Madhu94
Copy link
Collaborator

@Madhu94 Madhu94 commented Mar 2, 2019

Opened #6058 for this

Loading

@lock lock bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

4 participants