Shell - tmuxp.shell#

Utility and helper methods for tmuxp.

tmuxp.shell.has_ipython()[source]#

Return True if ipython is installed.

Return type:

bool

tmuxp.shell.has_ptpython()[source]#

Return True if ptpython is installed.

Return type:

bool

tmuxp.shell.has_ptipython()[source]#

Return True if ptpython + ipython are both installed.

Return type:

bool

tmuxp.shell.has_bpython()[source]#

Return True if bpython is installed.

Return type:

bool

tmuxp.shell.detect_best_shell()[source]#

Return the best, most feature-rich shell available.

Return type:

CLIShellLiteral

tmuxp.shell.get_bpython(options, extra_args=None)[source]#

Return bpython shell.

Return type:

Callable[[], None]

tmuxp.shell.get_ipython_arguments()[source]#

Return ipython shell args via IPYTHON_ARGUMENTS environment variables.

Return type:

List[str]

tmuxp.shell.get_ipython(options, **extra_args)[source]#

Return ipython shell.

Return type:

Any

tmuxp.shell.get_ptpython(options, vi_mode=False)[source]#

Return ptpython shell.

Return type:

Any

tmuxp.shell.get_ptipython(options, vi_mode=False)[source]#

Based on django-extensions.

Run renamed to launch, get_imported_objects renamed to get_launch_args

Return type:

Any

tmuxp.shell.get_launch_args(**kwargs)[source]#

Return tmuxp shell launch arguments, counting for overrides.

Return type:

LaunchImports

tmuxp.shell.get_code(use_pythonrc, imported_objects)[source]#

Launch basic python shell via code.

Return type:

Any

tmuxp.shell.launch(shell='best', use_pythonrc=False, use_vi_mode=False, **kwargs)[source]#

Launch interactive libtmux shell for tmuxp shell.

Return type:

None