2i2c-org / jupyter-launcher-shortcuts

Launcher shortcuts for classic Jupyter Notebook & JupyterLab
BSD 3-Clause "New" or "Revised" License
17 stars 11 forks source link

How to configure this software? ... #13

Open nmvega opened 3 years ago

nmvega commented 3 years ago

Hello Friends:

Unfortunately, I'm unsure how to use this useful tool. Let's say I have Redis installed and upon clicking a Redis launcher-box, I want to start a terminal running the redis-cli client, which is in /usr/bin/redis-cli, how would I configure this?

Also, does the icon file have to be svg or can it be png with certain dimensions?

c.LauncherShortcuts.shortcuts = {
    'my-shiny-application': {
        'title': 'Redis',
        'target': '{base_url}shiny/my-shiny-application-directory/',
        'icon_path': '/usr/local/jupyterlab-icons/redis.svg'
    }
}

Alternatively, if this newest versions of jupyterLab already integrates this functionality (meaning this plugin is no longer needed), where I just need to edit something, please let me know how to do it that way.

Thank you! =:)

maresb commented 2 years ago

Hi! This tool will allows you to open URLs. For example, you could create a launcher shortcut for Google. I don't know whether or not there is a similar tool for running a command in a terminal.