Skip to main content

A IPython debugging console for Plover.

Project description

plover-debugging-console

A IPython debugging console for Plover.

See also:

Usage

  • Install the plugin.
  • Enable the extension plugin in Plover.
  • Run the command plover-debugging-console-connect (or plover -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.

Known issues

Those errors can be fixed by installing the latest version of background_zmq_ipython manually on GitHub. Refer to https://github.com/openstenoproject/plover/wiki/Manually-Installing-Plugins for instruction.

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 of plover-run-shell repository)

Implementation details

  • The kernel can be connected to manually with ipython console --existing <file> or jupyter console --existing <file>.
  • The IPython/Jupyter connection file path is stored in connection_path_container, which is plover_debugging_console_path in the temp folder in the current version.
  • background_zmq_ipython package is used, which requires jupyter
  • Regarding PAGER, GIT_PAGER, TERM, CLICOLOR environment variables being set: Either
  • See https://stackoverflow.com/a/68769973/5267751 for the method used in plover-debugging-console-execute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plover-debugging-console-0.2.5.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

plover_debugging_console-0.2.5-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file plover-debugging-console-0.2.5.tar.gz.

File metadata

  • Download URL: plover-debugging-console-0.2.5.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.5

File hashes

Hashes for plover-debugging-console-0.2.5.tar.gz
Algorithm Hash digest
SHA256 51059182389e49b1b3854a453961af959332b9287189ef457b4c05cd6dcbe7f2
MD5 7554aa48ee0399dffc25e50b8d3c6913
BLAKE2b-256 2c53c04a6a221772a022c4e7d9cc450a01c7cbabe58208ada002fa838c394403

See more details on using hashes here.

File details

Details for the file plover_debugging_console-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: plover_debugging_console-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.5

File hashes

Hashes for plover_debugging_console-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8516eaa5adb0363cdbf695334fa5e8023a7610f45b4828c3413bd7f329985a20
MD5 d698cdf2840da06ea4e6e8928a41335f
BLAKE2b-256 cdfa204ca818a3d5348a2d87e197dacaf974acf61c89cb604e33c509fcf3bbe3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page