Spyder Watchlist plugin
Watchlist plugin for the debugger in the Spyder IDE
A watchlist is a functionality some IDEs offer while debugging code. It is related to the display of all variables accessible in the current scope (aka Variable Explorer in Spyder). But there is an important distinction: A Watchlist consists of a user-definable list of expressions. These expressions are evaluated after each debugger step and the result of the evaluation is displayed. See here for a screencast which demonstrates the plugin.
Installation
pip install spyder-watchlist
Features
-
Any Python expression can be entered. The Watchlist displays the stringified result of the evaluation. In terms of Python code
value = str(eval(expression, globals, locals)).Warning This makes the Watchlist a very powerful tool, but this comes at a cost: Any side effects of an expression will affect your execution environment.
-
The values of expressions are refreshed whenever they might have changed (after executing commands in the IPython Console and after debugger commands).
-
The list of expressions can be modified at any time; see Usage for details.
-
The value of an expression is shown with bold font if it has changed
-
The value of an invalid expression is show as
<exception name>. Hover the mouse over the value to show the full exception message in a tooltip.
Usage
- Rearranging of expressions: Use Drag & Drop
- Changing an existing expression: Double click on expression (first column)
- Adding a new expression
- Toolbar
+button - Menu entry in right-click menu (anywhere in the table)
- Double click at the end of the table (only possible if there is no scrollbar)
- Drag & Drop text. If the text consists of multiple lines, each line is added as an expression.
- Toolbar
- Removing expressions. The following actions remove the currently selected
expressions:
- Toolbar
-button - Menu entry in right-click menu
Delkeyboard key
- Toolbar
- There is also a “Remove all expression” action in the toolbar and right-click menu
Known Issues
- The value of variables in the current scope can be changed in Spyder’s
Variable Explorer plugin. Expressions in the Watchlist depending on any
variable changed in the Variable Explorer will display an outdated value. The
new expression value is displayed after a refresh of the Watchlist. A
refresh is trigged by:
- Executing commands in the IPython Console. Pressing Enter with an empty input prompt is sufficient.
- Modifying the list of expressions in some way (add, remove or edit an expression)
Metadata
Release files for spyder-watchlist 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spyder_watchlist-1.1.1.tar.gz | 12.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spyder_watchlist-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.8 kB
Release files / spyder_watchlist-1.1.1.tar.gz
| Download URL | spyder_watchlist-1.1.1.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec4b37a2af1a3e62f355962b6662df4421a950cb44b584fc5ce278e24232ccfd
|
|
BLAKE2b-256 checksum How to use checksums |
9879342c968b30b0d08711c567770bc3a8958a76cea359318c06fef146b08627
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Release files / spyder_watchlist-1.1.1-py3-none-any.whl
| Download URL | spyder_watchlist-1.1.1-py3-none-any.whl |
|---|---|
| Size | 14.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10df6e4772c4e90b422180389f9469c71cdc8ba2982fb1b488d1c3e69f63d8d9
|
|
BLAKE2b-256 checksum How to use checksums |
afc4992875e885f0595b99e0625701e255b803e089286961422e05b49c84f499
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|