I am working within a network that uses the Lmode management of the user environment. When I want to use rpy2 (Python API for R) in a python script, I first have to load module R in the shell where the script is run so it has access to R. Now I want to do the same thing in a jupyter notebook. Thus, I want to make R available to the jupyter kernel not to a shell session (this is probably not the right phrasing, but I hope it is clear what I mean). I found the following extension: https://github.com/cmd-ntrf/jupyter-lmod?tab=readme-ov-file, which allows it. Can one use its functionality when working with Jupyter notebooks in Visual Studio Code or is it only meant to work in JupyterLab? If so, how can I do it in VSCode? Are there any other solutions that I can use in VSCode? Continue reading...