I want to connect to remote ipython server, and follow the doc of the ipython, I start a ipython server in my server by
ipython3 kernel -f ~/.ipython/kernel.json --pprint
and I can start a ipython client in iTerm by
jupyter console --existing path/to/kernel.json --ssh firstname.lastname@example.org -simple-prompt
However, I use the above command in emacs by
run-python and got
Warning (python): Python shell prompts cannot be detected. If your emacs session hangs when starting python shells recover with ‘keyboard-quit’ and then try fixing the interactive flag for your interpreter by adjusting the ‘python-shell-interpreter-interactive-arg’ or add regexps matching shell prompts in the directory-local friendly vars: + ‘python-shell-prompt-regexp’ + ‘python-shell-prompt-block-regexp’ + ‘python-shell-prompt-output-regexp’ Or alternatively in: + ‘python-shell-prompt-input-regexps’ + ‘python-shell-prompt-output-regexps’
The solution in here does not work for me and even if it does, it seems that one can not send code to this
So my question is how can I use a remote ipython console and send by codes by
python-shell-send-* functions ?
Thanks in advance.