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

Launcher for a shell script? #2

Closed vnijs closed 4 years ago

vnijs commented 5 years ago

Is it possible to setup a launcher for a shell script? It could run in the background, but even better would be in the terminal included with jupyterlab

TidbitSoftware commented 1 year ago

Did you ever resolve this using this extension?

vnijs commented 1 year ago

Not exactly, no. I ended up using jupyter's server proxy to open different apps. See example below.

https://github.com/vnijs/jupyter-radiant-proxy

TidbitSoftware commented 1 year ago

Thanks for your response. I'm trying to create a Launcher entry that will run a bash script that simply copies assets from a shared directory to the user's home directory without launching a notebook or allowing web access. Are you aware of an existing extension that allows for this, or a straightforward was to add custom Launcher entries (without having to roll my own extension)? Sorry, but my Google Fu is failing me so far.

vnijs commented 1 year ago

Using the template I used for the extension might be a good place to start. You could try replacing the call to start R with some bash commands. If possible, I'd be interested to see what you come up with.

TidbitSoftware commented 1 year ago

Thanks again. It's increasingly looking like I will have to roll my own extension in order to achieve this and will share the results when done. Honestly, I'm surprised something like it doesn't exist already.

TidbitSoftware commented 1 year ago

I ended up using https://github.com/timkpaine/jupyterlab_commands to set up a number of Command Palette functions to call predefined scripts. The extension uses the server proxy as well, so it's effectively the same solution.