libtmux Reference MCP Search
On this page

libtmux.Session.from_session_id

View as Markdown

Module
libtmux
Declared in
Session
Package
libtmux
Source
src/libtmux/session.py
from_session_id ( cls , server : Server , session_id : str ) Session
methodclassmethod [source]
methodclassmethod [source]
from_session_id

Create Session from existing session_id.

Examples

>>> Session.from_session_id(
...     server=session.server, session_id=session.session_id
... )
Session($1 ...)
Parameters
  • server ( Server ) – The tmux server holding the session.

  • session_id ( str ) – Session id, e.g. "$1".

Returns

Session

Raises

0 declared, 0 inherited

Esc

Type to search.