RunSelection.py
Runs highlighted code or a single line in the editor by pressing F9. It also supports tagging a region of code with Ctrl+J for convenient re-execution with Ctrl+F9.
SubCode.py
Provides cell-mode-like functionality similar to MATLAB and Sagemath.
SubCode allows the programmer to separate a script into blocks for execution in the shell
without restarting.
This allows for iterative and rapid prototyping of code.
SubCodes are separated by "##" marker comments at the start of a line. These subcode markers may be indented for running indented code. The location of the cursor determines the active subcode, a region of code bounded by subcode markers (or dedented code for indented subcode markers). A subcode may be executed by pressing Ctrl+Return.
Lines within a subcode that begin with "#:" may be uncommented to run additional commands when the subcode is executed. This is useful for setting test conditions for developing indented code.
More info can be found in the header of SubCode.py as well as SubCodeTutorial.py in the demos directory.
This extension contains a workaround for #13495.
SubCodeToolbar.py
Provides a toolbar for using SubCode.py. The toolbar allows for arithmetic modification of numbers within subcodes, as well as a listing of subcode labels.
CythonScript.py
Provides basic
Cython support, including syntax highlighting and executing a .pyx script via Ctrl+E. Refer to the demos directory.
ReindentExtension.py
Applies the core of reindent.py to the source code in an editor window by selecting "Apply Reindent" under the Format menu.
#5150
TabHighlight.py
Highlights all instances of \t in an editor to help with fixing tab/space errors with Python code. Tabs appear as red checker pattern. This extension may be toggled using "Highlight \t tabs" under the Options menu.
PastePyShell.py
Allows for intelligent copy and paste of Shell contents into the editor. Prompts ('>>>') are removed and non-code gets commented.
#11838
#1178