Can I start an IPython session through ssh and log in again?

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?

+4
source share
1 answer

Yes. Use screen, tmux(superior) or similar software. Both use the concept of sessions to which you join and disconnect.

C tmux:

  • Run tmuxand then ipython.
  • , <Ctrl+b> d . .
  • , tmux attach ipython.

screen, <Ctrl+a> <Ctrl+d> screen -r.

+8

All Articles