sublimerepl

I can't make SublimeREPL run Python 3, instead it's running Python 2

我只是一个虾纸丫 提交于 2021-02-10 20:44:39
问题 As you can see from the following code: I am trying to run a simple code that checks the python version and takes the user's input: import platform print(platform.python_version()) msg = input("Hello, how are you? ") print(msg) We know that Sublime doesn't take any user input in a default fashion, so that's why I installed SublimeREPL, the inconvenience that I'm having is that an error arrises when I run the code above in SublimeREPL:( The code runs fine (apart the fact that it can't take

I can't make SublimeREPL run Python 3, instead it's running Python 2

有些话、适合烂在心里 提交于 2021-02-10 20:38:32
问题 As you can see from the following code: I am trying to run a simple code that checks the python version and takes the user's input: import platform print(platform.python_version()) msg = input("Hello, how are you? ") print(msg) We know that Sublime doesn't take any user input in a default fashion, so that's why I installed SublimeREPL, the inconvenience that I'm having is that an error arrises when I run the code above in SublimeREPL:( The code runs fine (apart the fact that it can't take

Running Python interactively from within Sublime Text 2

元气小坏坏 提交于 2020-01-19 04:58:09
问题 I have looked at all the answers on this forum but I'm missing something. I want to be able to hit Cmd + B while editing a Python file "myfile.py" in Sublime Text 2. This should open up a Python shell that loads my file and returns me to the interactive prompt so the namespace in my Python script is available. Setting the -i option in the build setting still closes the interpreter (see below) > 81 > >>> [Finished in 0.1s] I downloaded sublimeREPL but I'm not sure how to set the -i option. Any

Sublime2 and SublimeREPL

徘徊边缘 提交于 2020-01-13 18:17:51
问题 Using Windows 7, Python 3.2 and Sublime Text 2 I went through all of the instruction to install SublimeREPL and when I go to Tools -> SublimeREPL -> Python -> Python I get an error: "WindowsError(2, 'The system cannot find the file speificed.'). I went to the FAQ and added the following (exactly as stated) to the user preferences: { ... "default_extend_env": {"PATH": "C:/Python32"} ... }` When I try to save the file I get another error: "Error trying to parse setting: Expected value in..."

Is it possible to disable syntax highlighting in Sublime REPL-tabs?

前提是你 提交于 2020-01-11 04:39:07
问题 Is there any way to disable the syntax highlighting in SublimeREPL-tabs when a script is running? Please see this question for context: Red lines coming up after strings in SublimeREPL (python)? For example, when python-scripts run in Sublime REPL, apostrophes (') in the output-text get highlighted as syntax. Because of this, the last part of the line is highlighted as if the string (which in fact is text-output and not actual code) was not closed properly. This is what the output looks like:

Send Text to REPL Using SublimeREPL and Sublime Text 2

情到浓时终转凉″ 提交于 2020-01-01 11:48:32
问题 I'm having trouble getting started with SublimeREPL. I have a python program, and can start a python interpreter inside of SublimeText2. However, I would like to use either the Eval In Repl and Transfer to Repl features, but they don't seem to do anything. How do I associate a repl with my file in sublime text 2 so these will work? 回答1: History To be honest eval for python never worked reliably. It was plagued with strange compilation errors (mainly caused by whitespace/blank lines) and

Sublime Text 2 + SublimeREPL allowing user input

时光怂恿深爱的人放手 提交于 2019-12-24 13:19:12
问题 I'd like to set up Sublime Text 2 (or 3 if recommended) to allow user input (raw_input() or input() within the files.). To clarify, I've had this work before! I want to be able to write and execute all code within one window/tab. I have installed sublimeREPL correctly but yet whenever I use either raw_input() or input() I receive the following error: EOFERROR: EOF when reading a line I've had it setup correctly and it worked perfectly before, but it's been a long time and I cannot reproduce

Manage python packages in Sublime text 3

安稳与你 提交于 2019-12-24 13:11:42
问题 Working with Ubuntu 14.04 How to tell Sublime text 3 and SublimeREPL where to look for the python packages? From my terminal, pip list returns a list with many python packages like that: numexpr (2.2.2) numpy (1.8.2) oauthlib (0.6.1) oneconf (0.3.7) openpyxl (2.2.5) PAM (0.4.2) pandas (0.16.2) However, inside Sublime text 3, on the console: >>> import openpyxl Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named 'openpyxl' >>> import pandas

How to run R Code in R Markdown file in SublimeREPL?

廉价感情. 提交于 2019-12-22 06:58:08
问题 I would like to test code parts in my R Markdown code without leaving Sublime Text. For instance: Multiplying the grades with two solves the unreliability problem: ```{r} chisq.test(2*grades) ``` In the above example, I would like to select the line that has the code "chisq.test(2*grades)", press my key combination, and have it ran in SublimeREPL as R code. However, when I try this, I get the following error from SublimeREPL: Cannot find REPL for 'HTML.markdown.rmarkdown' When I change the

How to run Python 3 in Sublime 2 REPL Mac

二次信任 提交于 2019-12-22 05:53:57
问题 My question is the following, I have sublime 2 and sublime repl plugin installed all working fine, the only thing i need is to change the version of python that is running on the sublimerepl built in console. What I mean is, I have python 2.7.5 (which is pre installed with maveriks) running fine in sublime (via sublimerepl), and I have installed via the installer from python.org, python 3.3.3 , that I need to use, I want to run this version of python on the sublimerepl console but I don't