Definition at line 5 of file ipython_embed.py.
◆ __init__()
def shesha.util.ipython_embed.CustomPrompt.__init__ |
( |
|
self, |
|
|
|
shell |
|
) |
| |
Definition at line 8 of file ipython_embed.py.
8 def __init__(self, shell):
9 Prompts.__init__(self, shell)
◆ in_prompt_tokens()
def shesha.util.ipython_embed.CustomPrompt.in_prompt_tokens |
( |
|
self, |
|
|
|
cli = None |
|
) |
| |
Definition at line 14 of file ipython_embed.py.
14 def in_prompt_tokens(self, cli=None):
16 (Token.Prompt, self.name),
17 (Token.Prompt,
' In ['),
18 (Token.PromptNum, str(self.shell.execution_count)),
19 (Token.Prompt,
']: '),
◆ out_prompt_tokens()
def shesha.util.ipython_embed.CustomPrompt.out_prompt_tokens |
( |
|
self | ) |
|
Definition at line 22 of file ipython_embed.py.
22 def out_prompt_tokens(self):
24 (Token.OutPrompt, self.name),
25 (Token.OutPrompt,
' Out['),
26 (Token.OutPromptNum, str(self.shell.execution_count)),
27 (Token.OutPrompt,
']: '),
30 def embed(name: str=
"", loc_vars: dict=
None):
◆ setName()
def shesha.util.ipython_embed.CustomPrompt.setName |
( |
|
self, |
|
|
|
name |
|
) |
| |
◆ name [1/2]
string shesha.util.ipython_embed.CustomPrompt.name = "" |
|
static |
◆ name [2/2]
shesha.util.ipython_embed.CustomPrompt.name |
The documentation for this class was generated from the following file: