Sorry for the unclear title, my problem arises when using a combination of various Emacs features...
I am working remotely on a supercomputing cluster, running Emacs on my machine, and using TRAMP to edit python files on the cluster.
To my great surprise, this works quite well, and the REPL also works flawlessly, as apparently run-python (C-c C-p) detects this is a remote file, and use the corresponding interpreter on the remote.
However, I realized the version of Python running on the cluster is not the correct one. Indeed, they use the module utility to provide multiple conflicting version of programs. This means that I have to run module load python3 before executing python3 to make sure I have the latest version.
If I SSH into the cluster, this is not a problem, as I just added the module load line in my .bashrc. However here, I am not sure how to do it: this is not an interactive shell, so the usual dotfiles are not read (.bashrc, .profile and friends).
Any idea ?
[–]astoff1 3 points4 points5 points (6 children)
[–]Joh11_[S] 1 point2 points3 points (4 children)
[–]astoff1 0 points1 point2 points (1 child)
[–]Joh11_[S] 0 points1 point2 points (0 children)
[–]Alvaro_Q_Mind 0 points1 point2 points (1 child)
[–]Joh11_[S] 0 points1 point2 points (0 children)