ReplReader pump that keeps polling this method. ReplManager will set up a separate thread with a Read and return some bytes from REPL’s incoming stream, blocking as A REPL over SublimeText’s internal Python interpreter.Īll these can be found in the plugin’s repl/ subdirectory.Ī REPL class is expected to provide a standard interface for SublimeREPL integration: read_bytes ( ) ¶ This is only used by Execnet Python integration This is only used by PowerShell integration. There are three integrations that provide their own classes: Presumably having been spawned externally, and the REPL connects to it over
The process is connected to the output and the input of the REPL Running in the REPL is a subprocess of the editor. Class SubprocessRepl for subprocess-based REPLs.New integrations canĮither provide their own class, or use one of the base classes that ship with For this reason, actual REPL configuration is concentratedĪll REPL instances are descendants of Repl. This allows the command paletteĬonfiguration to specify a reference to the REPL configuration command instead The configuration item until one is found. Item and the name of a file where the configuration is stored, and scans theĪvailable Sublime configuration folders for the file and within the file for Its function is to execute another command.
This command is a wrapper that is used in the command palette configuration. Latter is achieved by the command run_existing_window_command (class It is obvious that the REPL configuration is concentrated in the menu files,Īnd the palette configuration only refers to those by ID and file name.