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

Setting up environments before loading subkernels. #293

Open
BoPeng opened this issue Oct 10, 2017 · 0 comments
Open

Setting up environments before loading subkernels. #293

BoPeng opened this issue Oct 10, 2017 · 0 comments
Assignees

Comments

@BoPeng
Copy link
Contributor

BoPeng commented Oct 10, 2017

This is an extension to vatlab/sos#695 and is related to vatlab/sos#688

On a multi-user environment, there can be multiple versions of the same interpreter that are loaded on demand with commands such as module load. Although users can add these commands to shell configuration files such as .bashrc, these files might not be executed when the Jupyter server is started remotely from JupyterHub. Also, using .bashrc limits users to a specific version of interpreter.

It therefore makes sense to define customized language modules (e.g. R3.3, R3.4) and associate them with certain commands (e.g. module load R-3.3 or PATH='/path/to/R3.3:$PATH) so that the correct interpreter could be located before the kernel is started.

Implementation wise, instead of the default

subkernel name: R
language module: sos_R.kernel.sos_R
interpreter: what ever R in the path
kernel: ir

we could add in user or site configuration files multiple subkernels like

subkernel name: R-3.3
language module: R (or sos_R.kernel.sos_R)
environ:  path and variables, or commands to execute
kernel: ir
@BoPeng BoPeng transferred this issue from vatlab/sos Jun 2, 2020
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