A IPython debugging console for Plover.
Project description
plover-debugging-console
A IPython debugging console for Plover.
See also:
plover-run-py
plugin for executing a Python command with a stroke, or from the command-line.
Usage
- Install the plugin.
- Enable the extension plugin in Plover.
- Run the command
plover-debugging-console-connect
(orplover -s plover-debugging-console-connect
) in a terminal.
The global variable engine
is given. Other objects can be accessed from engine
as public
or private members.
Alternatively, plover-debugging-console-connect qtconsole
can be used to launch a console-style application using Qt.
See documentation of jupyter qtconsole
for more details.
Or plover-debugging-console-execute
can be used to execute a file non-interactively. See note below.
Note
-
Once started, the kernel is not stopped until Plover exits.
-
The session (kernel, global variables) are persistent, and shared between consoles.
However,
plover-debugging-console-execute <file>
uses a separate environment, see documentation of%run
IPython magic command. -
Any
print
commands are printed on Plover's console, not IPython's console. -
Error messages might be hidden (if
plover-debugging-console-execute
is used), or displayed in a different console.To view the error messages, open an interactive console.
-
On some operating systems, the plugin may set
PAGER
environment variable. (see issue #2 ofplover-run-shell
repository)
Implementation details
- The kernel can be connected to manually with
ipython console --existing <file>
orjupyter console --existing <file>
. - The IPython/Jupyter connection file path is stored in
connection_path_container
, which isplover_debugging_console_path
in the temp folder in the current version. background_zmq_ipython
package is used, which requiresjupyter
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for plover-debugging-console-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | de1eab412c465733ce44a9dc1a895f2f46fd85960f7d9bed24149779e3bda6c1 |
|
MD5 | f6d542d34f0894fd61ae029186b83158 |
|
BLAKE2b-256 | 9c48e0de15c0498db8cc99965ee8a4ac73013dc14511e606b2747dec29bd7ed6 |
Hashes for plover_debugging_console-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48b896616357b145658aa8ddae5f60efd3c0e5e647e777c8b91b005db0d9dd36 |
|
MD5 | 8d68a7a7dc2e580cf37768cdaaec3328 |
|
BLAKE2b-256 | 2d28cc6cce322a9e2bcc8405be8f6fddd0aaea734728659684ebd049f3c64a07 |