bundles / ipykernel latest / ipykernel / kernelbase / Kernel / getpass
function
ipykernel.kernelbase:Kernel.getpass
source: /ipykernel/kernelbase.py:1387
Signature
def getpass(self, prompt: str = '', stream: t.TextIO | None = None, *, echo_char: str | None = None) → strSummary
Forward getpass to frontends
Extended Summary
The signature mirrors getpass.getpass, which this replaces on the kernel side; the parameters that only make sense for a local terminal are accepted but ignored.
Raises
: StdinNotImplementedError if active frontend doesn't support stdin.
Aliases
ipykernel.kernelbase.Kernel.getpass