Questions tagged [sublimerepl]

SublimeREPL is a plugin for Sublime Text that runs interactive interpreters from a number of languages within a normal tab. It also allows connecting to a remote interpreter (e.g. Clojure/Lein) though a telnet port. SublimeREPL has a built-in support for command history and transferring code from open buffers to the interpreters for evaluation.

SublimeREPL is a for that runs interactive interpreters (both local and remote) inside a regular Sublime tab or view. It has built-in support for over 30 languages, including basic operations ( and ).

NOTE: SublimeREPL is no longer under active development. It does work in , but some features such as IPython/Jupyter integration are no longer functional because of API changes. One alternative for SublimeREPL is the Terminus package.

Features


Useful Links

238 questions
0
votes
1 answer

Sublime Text 3 shows EOFError() when I try to run Python scripts with SublimeREPL

When I try to run a Python script from Sublime Text 3, I get a pop-up dialog box that simply says "EOFError()" and nothing else. I'm using the SublimeREPL plugin, with some slight modifications to my C:\Users\Al\AppData\Roaming\Sublime Text…
Al Sweigart
  • 11,566
  • 10
  • 64
  • 92
0
votes
1 answer

Modify title of SublimeREPL in tab

I'm using the SublimeREPL package. The title in the tab where the code is running is very long and makes navigating the tabs a hassle: Can the title shown in the REPL tab be modified and/or suppressed all together?
Gabriel
  • 40,504
  • 73
  • 230
  • 404
0
votes
2 answers

Cancel Build key not working in Sublime Text 3

I installed the REPL package on Sublime Text 3 and when I run the script a new window opens and shows the results but I can't stop the execution (e.g. an infinite loop). The 'Cancel Build' command seems to be not active (grey), as shown in the image…
0
votes
0 answers

SublimeREPL Giving Syntax Errors

I have tried to follow the instructions on SUBLIMEREPL. Due to me trying to use the input() function, I was told to use SublimeREPL. My code is simple. val = input(" Please tell my name sir/ma'am") After installing the SublimeREPL through the…
0
votes
0 answers

Receiving NameError on input in SublimeREPL

I'm trying these lines in Python 3 using SublimeText: a = input('Geben Sie bitte das Wort "Hallo" ein: ') if a == "Hallo": print('Korrekt!') Now if I run that in SublimeREPL I get Geben Sie bitte das Wort "Hallo" ein: Hallo Traceback (most…
KayAl
  • 3
  • 2
0
votes
1 answer

Why doesn't SublimeREPL accept undefined data types? (Issue inputting string)

I am trying to provide a simple input to a program using SublimeREPL on Sublime Text. Sample code below print('Please print your name') name = input() print(name) When I try to input my name via SublimeREPL as just MyNameHere I get the following…
stem__bar
  • 19
  • 4
0
votes
1 answer

SublimeREPL skips code when running python

I have this code that I'm trying to run in SublimeREPL, but after it takes both inputs, it skips the code where it says what to do with those numbers, and it jumps to the final lines. Has the version of python something to do with it? ef suma(num1,…
0
votes
2 answers

SublimeREPL FileNotFoundError(2, "No such file or directory: 'python'")

I'm new to linux and I've just started using Ubuntu 20.04 LTS to get a feel for it. I installed the snap version of Sublime Text 3 from the software centre included and set it up like I would usually do on Windows (Install package installer,…
0
votes
1 answer

Sublime: Running script from cursor until begin script without select lines

I am using Sublime to work with R via Repl, all works fine... But I wonder if its possible run commands lines from cursor until the begin of script without select lines above the cursor... Because when I select lines above the cursor to run script,…
Rodrigo_BC
  • 161
  • 11
0
votes
0 answers

SublimeREPL doesn't work with Javascript code

Recently I installed SublimeREPL from Sublime Text Package Control and didn't change or modify anything else. I have Node.js installed and added its path to the PATH variable so I can run it from Windows Powershell. The problem is, whenever I run…
user7628486
0
votes
0 answers

Why cannot Sublime Text understand f-strings?

class Stats: def __init__( self, hp, hunger, dehydration, phys_strength, mental_strength, psychic_powers, intelligence, ): self.hp = hp self.hunger = hunger …
Caspian Ahlberg
  • 934
  • 10
  • 19
0
votes
1 answer

How to fix 'invalid character in identifier' when calling a function

I made a function that can calculate the mass of a planet in python. from math import pi from scipy.constants import gravitational_constant as g def planet_mass(dist, t): vel = (2 * pi * dist) / t return (vel**2) * dist / g But calling…
0
votes
1 answer

keyboard shortcut for sublime text new version

I have this code to create a shortcut to run current file in sublimeREPL: { "keys": ["ctrl+alt+b"], "command": "run_existing_window_command", "args": { "id": "repl_python_run", "file": "config/Python/Main.sublime-menu" …
0
votes
1 answer

SublimeREPL: OSError: [WinError 6] The handle is invalid

I'm using R in SublimeREPL, but can't send my code to the R session. Here are the keybindings I'm using: { "keys": ["ctrl+enter"], "command": "repl_transfer_current", "args": {"scope": "selection"}}, { "keys": ["ctrl+enter"], "command":…
MrT
  • 704
  • 1
  • 8
  • 21
0
votes
3 answers

Python "Invalid Syntax" error while calling a function in IDLE

I'm attempting to write a program that generates a random string of numbers, with its length based on user input. I wrote it in Sublime Text, and it worked perfectly with SublimeREPL, but I then took it into IDLE and attempted to run it and it threw…
Tim Anderson
  • 25
  • 2
  • 6