Harald Schilly <
harald....@gmail.com> writes:
> ... and another bonus trick: it also works for IPython kernels:
* For emacs fans:
You can ssh to your project (C-x C-f /ssh:user@host: <enter>), open a
.py file from your project and call python-shell-switch-to-shell (C-c
C-z) press <enter> and have the python shell running remotely on SMC
and displaying in your local emacs.
To use ipython instead:
#+BEGIN_SRC emacs-lisp
(setq python-shell-interpreter "ipython"
python-shell-interpreter-args ""
python-shell-prompt-regexp "In \\[[0-9]+\\]: "
python-shell-prompt-output-regexp "Out\\[[0-9]+\\]: "
python-shell-completion-setup-code
"from IPython.core.completerlib import module_completion"
python-shell-completion-module-string-code
"';'.join(module_completion('''%s'''))\n"
python-shell-completion-string-code
"';'.join(get_ipython().Completer.all_completions('''%s'''))\n")
#+END_SRC
* For everybody (or I guess everybody with Linux):
For easier access for every project, include an entry in your
~/.ssh/config of the form:
#+BEGIN_EXAMPLE
Host smc-THEPROJECTNAME
HostName THENUMBERSWITHPOINTSAFTERTHE@
User THECHARACTERSBEFORETHE@
IdentityFile ~/.ssh/YOURKEYFORSMC
#+END_EXAMPLE
Now you can simply: ssh smc-THEPROJECTNAME