trungleduc / jupyter_app_launcher

A JupyterLab extension to create custom launcher entries.
https://jupyter-app-launcher.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
53 stars 11 forks source link

Add custom support for opening a terminal and running a specified command #56

Open dhirschfeld opened 5 months ago

dhirschfeld commented 5 months ago

The first part is easy with the jupyterlab-commands type:

  type: jupyterlab-commands
  source:
    - label: Open Terminal
      id: 'terminal:open'
      args:
        name: Browsr

...but it appears that there is no way to use that to execute a command (e.g. launch a terminal app) for security reasons: https://github.com/jupyterlab/jupyterlab/pull/5916

initialCommand is still a constructor arg so jupyterlab_app_launcher could define a special terminal type and create the terminal and run the initial command via the typescript api.

trungleduc commented 5 months ago

Hi, thanks for the suggestion, i'm happy to review PR implementing this feature