I work on a machine for ssh, where I run ipythonfor interactive work. Can I run the long-running Python function from IPython, disconnect the ssh connection and re-enter the IPython session to observe the result?
ipython
Yes. Use screen, tmux(superior) or similar software. Both use the concept of sessions to which you join and disconnect.
screen
tmux
C tmux:
<Ctrl+b> d
tmux attach
screen, <Ctrl+a> <Ctrl+d> screen -r.
<Ctrl+a> <Ctrl+d>
screen -r