/saccade

Rapid Python Eval

Primary LanguageTypeScriptMIT LicenseMIT

Saccade: Rapid Python Eval

Evaluate Python in an interactive window with automatic detection of "cell" boundaries - zero markup. Enjoy notebook-like feedback in plain python files.

By default ctrl-enter evaluates the current cell and stays there, shift-enter evaluates & moves to the next cell.

A "cell" is defined as:

  • the current line, function, or class, plus:
  • any adjacent cells not separated by a blank line

Saccades are rapid, ballistic movements of the eyes that abruptly change the point of fixation [1]. Saccades are one of the fastest movements produced by the human body [2]. The primary function of saccades is to bring new objects of interest on to the fovea [3]. This allows the visual system to scan the environment quickly and efficiently, building up a detailed mental image despite having high resolution in only a small part of the retina.

Saccade Demo

Features

  • Automatically detect code cells based on function/class, contiguous regions, and configurable cell markers. No need to pollute your python files with cell metadata.
  • Supports both code and markdown cells
  • Visual feedback with cell highlighting
  • Compatible with Jupyter notebooks and Python scripts using Jupytext "light" format
  • Integrates with VS Code's Python Interactive Window

Requirements

  • Visual Studio Code v1.90.0 or higher
  • Python extension for VS Code

Extension Settings

This extension contributes the following settings:

  • saccade.enabledCellMarkers: An array of strings that define the cell markers. Default: ["# +", "# %%"]

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This extension is licensed under the MIT License.