diff options
Diffstat (limited to 'pw_rpc/py/pw_rpc/console_tools/console.py')
-rw-r--r-- | pw_rpc/py/pw_rpc/console_tools/console.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pw_rpc/py/pw_rpc/console_tools/console.py b/pw_rpc/py/pw_rpc/console_tools/console.py index 51544f6f9..361ed7a4d 100644 --- a/pw_rpc/py/pw_rpc/console_tools/console.py +++ b/pw_rpc/py/pw_rpc/console_tools/console.py @@ -176,10 +176,9 @@ class Context: .. code-block:: python - context = console_tools.Context( - clients, default_client, protos, help_header=WELCOME_MESSAGE) - IPython.terminal.embed.InteractiveShellEmbed().mainloop( - module=types.SimpleNamespace(**context.variables())) + context = console_tools.Context( + clients, default_client, protos, help_header=WELCOME_MESSAGE) + IPython.start_ipython(argv=[], user_ns=dict(**context.variables())) """ def __init__( |