Shell - tmuxp.shell¶
Utility and helper methods for tmuxp.
-
tmuxp.shell.has_ipython()¶tmuxp.shell.has_ipython()¶
Return True if ipython is installed.
- Return type:
-
tmuxp.shell.has_ptpython()¶tmuxp.shell.has_ptpython()¶
Return True if ptpython is installed.
- Return type:
-
tmuxp.shell.has_ptipython()¶tmuxp.shell.has_ptipython()¶
Return True if ptpython + ipython are both installed.
- Return type:
-
tmuxp.shell.has_bpython()¶tmuxp.shell.has_bpython()¶
Return True if bpython is installed.
- Return type:
-
tmuxp.shell.detect_best_shell()¶tmuxp.shell.detect_best_shell()¶
Return the best, most feature-rich shell available.
- Return type:
CLIShellLiteral
-
tmuxp.shell.get_bpython(options, extra_args=None)¶tmuxp.shell.get_bpython(options, extra_args=None)¶
Return bpython shell.
-
tmuxp.shell.get_ipython_arguments()¶tmuxp.shell.get_ipython_arguments()¶
Return ipython shell args via
IPYTHON_ARGUMENTSenvironment variables.
-
tmuxp.shell.get_ipython(options, **extra_args)¶tmuxp.shell.get_ipython(options, **extra_args)¶
Return ipython shell.
-
tmuxp.shell.get_ptpython(options, vi_mode=False)¶tmuxp.shell.get_ptpython(options, vi_mode=False)¶
Return ptpython shell.
-
tmuxp.shell.get_ptipython(options, vi_mode=False)¶tmuxp.shell.get_ptipython(options, vi_mode=False)¶
Based on django-extensions.
Run renamed to launch, get_imported_objects renamed to get_launch_args
-
tmuxp.shell.get_launch_args(**kwargs)¶tmuxp.shell.get_launch_args(**kwargs)¶
Return tmuxp shell launch arguments, counting for overrides.
- Parameters:
kwargs (
Unpack[LaunchOptionalImports])- Return type:
LaunchImports