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

Remove only QTConsole #46

Open
lwbaqueros opened this issue Jan 8, 2024 · 1 comment
Open

Remove only QTConsole #46

lwbaqueros opened this issue Jan 8, 2024 · 1 comment

Comments

@lwbaqueros
Copy link

Is it possible to install a context menu for only JupyterLab, for example?
Or add an option to remove to remove all or only the desired CM entry (Jupyter Notebook, Jupyte Labo, or QTConsole)?

@ericpre
Copy link
Member

ericpre commented Jan 8, 2024

This isn't currently possible but It shouldn't be difficult to implement:

  • pass the argument
    parser = argparse.ArgumentParser(
    description='Add or remove context menu entries to start Jupyter applications in a given directory')
    parser.add_argument('--remove', action="store_true", help='remove the entries')
    parser.add_argument('-f', '--file_manager', action="store", help='specific a file manager', choices=['nautilus', 'caja', 'dolphin', 'nemo'])
    parser.add_argument('--version', action='version', version='%(prog)s {version}'.format(version=__version__))
  • Edit the various the relevant for loop for each platform, for example:
    for terminal in ('qtconsole', 'notebook', 'lab'):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants