DonJayamanne / vscodeJupyter

Jupyter for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=donjayamanne.jupyter
MIT License
334 stars 34 forks source link

feature request: allow custom jupyter command #125

Open chrstphrchvz opened 6 years ago

chrstphrchvz commented 6 years ago

Currently the extension is harcoded to run the command jupyter notebook: https://github.com/DonJayamanne/vscodeJupyter/blob/be7180030258808e2a686a2b248d12ac0cb026c0/src/jupyterServices/notebook/factory.ts#L53-L64

It would be desirable to instead use jupyter command by default while allowing a custom jupyter command as a user/workspace setting, in case one with a different name or PATH is needed. This is a feature which many other extensions tend to offer for any system commands they use.

(I'm using jupyter installed from MacPorts, which at the moment only provides renamed commands like jupyter-3.6 commands to prevent conflicts between multiple versions—one for each Python version. There is likely a way to allow selecting one of them to provide an exact jupyter command, but that still hasn't been added after quite some time: cf. https://trac.macports.org/ticket/51529.)