sublimerepl

unable to send R code from a knitr document to SublimeREPL

若如初见. 提交于 2019-12-19 10:26:31
问题 I'm using Sublime 3, and I have a very simple question. SublimeREPL is working perfectly with R files, and Sublime compiles perfectly the knitr files (using LaTeXing) But if I want to send R code from a knitr file (.Rnw) I get the following error: Cannot find REPL for 'tex.latex.knitr.ing' (I'm using Ubuntu 14.04 by the way) Any ideas? 回答1: Ok, so someone solved it here: https://github.com/wuub/SublimeREPL/issues/165#issuecomment-57658359 Just in case someone has the same problem: this file

IPython 4 shell does not work with Sublime REPL

眉间皱痕 提交于 2019-12-18 16:46:16
问题 I am having problems with running the IPython shell from the Sublime REPL package. Here is what I get: C:\Anaconda\lib\site-packages\IPython\config.py:13: ShimWarning: The`IPython.config` package has been deprecated. You should import from traitlets.config instead. "You should import from traitlets.config instead.", ShimWarning) C:\Anaconda\lib\site-packages\IPython\terminal\console.py:13: ShimWarning: The `IPython.terminal.console` package has been deprecated. You should import from jupyter

Why SublimeREPL won't import a Python module or read a file in CWD?

别等时光非礼了梦想. 提交于 2019-12-18 09:43:22
问题 I'm using Sublime Text 3 build 3126 on Ubuntu Zesty with the SublimeREPL plugin. I open a Python REPL with CTRL+SHIFT+P >> SublimeREPL: Python and send a file to REPL with CTRL+, , F and evertyhing works as long as I work on a single Python script file. As soon as I try to move some parts of my code to another module and import it in the main file, I get the nasty ImportError: No module named error. Trying to open a text file located in the same directory with: codecs.open('filename',

How to configure SublimeREPL for mit-scheme?

為{幸葍}努か 提交于 2019-12-18 05:21:56
问题 I have installed SublimeREPL, and now I am trying to customize the interpreters a bit. How can I add MIT Scheme to the Tools->SublimeREPL menu? I am new to Sublime Text 2. 回答1: You can read documentation about configuring additional REPLs here:http://sublimerepl.readthedocs.org/en/latest/#basics-of-language-integration-configuration-and-launch-commands And take a look at existing Scheme configuration here: https://github.com/wuub/SublimeREPL/tree/master/config/Scheme Most Scheme/Lisp dialects

Save file before running custom command in Sublime3

拥有回忆 提交于 2019-12-13 07:29:22
问题 This question is similar to this one Is it possible to chain key binding commands in sublime text 2? Some years have passed since that question (and the answers given), and I'm using Sublime Text 3 (not 2), so I believe this new question is justified. I've setup a custom keybind: { "keys": ["f5"], "command": "project_venv_repl" } to run the project_venv_repl.py script: import sublime_plugin class ProjectVenvReplCommand(sublime_plugin.TextCommand): """ Starts a SublimeREPL, attempting to use

SublimeREPL scala error

强颜欢笑 提交于 2019-12-12 12:17:15
问题 I installed SublimeREPL, but every time I try to launch the REPL, I get a dialog showing the error "OSError(2, 'No such file or directory')". I have Scala 2.10 installed using MacPorts. I am running OS X Lion (10.8.3). Is there some special configuration I need to tell SublimeREPL where to find the Scala executable? 回答1: In your Sublime Text installation directory (it will likely be under ~/Library/Application Support/Sublime Text 2 ), there's a configuration file: ./Packages/SublimeREPL

Starting SublimeREPL for Scheme gives OSError(2, 'No such file or directory')

一笑奈何 提交于 2019-12-12 03:08:59
问题 I've been trying to use SublimeREPL to run an interactive interpreter of Scheme, but I keep getting the error message "OSError(2, 'No such file or directory')". I know it's likely a file path issue in Main.sublime-menu, but I just can't seem to figure it out. Not sure if I'm missing something obvious or what. Any help would be appreciated! Here is the config file that I have in SublimeREPL/config/Scheme (unchanged since install): [ { "id": "tools", "children": [{ "caption": "SublimeREPL",

keyboard shortcut for sublime text new version

拈花ヽ惹草 提交于 2019-12-11 23:23:44
问题 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" } } But with the sublime's new version, it doesn't work. What's wrong? 回答1: This is the code: { "keys": ["ctrl+alt+b"], "command": "repl_open", "args": { "cmd": ["python", "-u", "-i", "$file_basename"], "cwd": "$file_path", "encoding": "utf8", "extend_env": {"PYTHONIOENCODING"

Import 3rd party module in SublimeREPL

回眸只為那壹抹淺笑 提交于 2019-12-11 03:59:45
问题 So I am learning to use SublimeREPL, and I encounter a problem. I have a main.py file, and in the same folder a timer.py . I write import statement in the main.py : import timer Then if I open 1) SublimeREPL --> Python --> Python--IPython, and transfer the code to the InteractiveConsole, I get error: Traceback (most recent call last): File "<console>", line 1, in <module> File "<string>", line 1, in <module> ImportError: No module named timer 2) SublimeREPL --> Python --> Python, and transfer

SublimeREPL Unable to Find R

こ雲淡風輕ζ 提交于 2019-12-09 04:44:27
问题 Okay, this is driving my crazy. I had set this up before, deleted Sublime Text, and now I can't remember what the right configuration was. Very simple: I'm running R through SublimeREPL and need to point the REPL to where R is installed. I followed the directions at http://sublimerepl.readthedocs.org/en/latest/, which say to go into the user-defined REPL settings and add this: { ... "default_extend_env": {"PATH": "{PATH}:/home/myusername/bin"} ... } where the path points to the right