问题标签 [sublimerepl]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
6445 浏览

python - SublimeREPL:Python - 运行当前文件

使用当前在 SublimeText 中打开的 python 脚本,我选择:

工具 > SublimeREPL > Python > 运行当前文件

Sublime 在一个新的交互式 REPL [python] 窗口中执行脚本(这个窗口仍然在 Sublime 内部)。

在 python 脚本执行完成后,Sublime 类型:

重新关闭

我现在可以开始在“ Repl Closed ”消息下方的交互式窗口中输入 python 命令。但是当我按下 Enter 键时,编辑器只是前进到一个新行,而我希望它执行我刚刚键入的一行。请告知应该使用什么键(如果有)来运行键入的命令。

0 投票
1 回答
1356 浏览

configuration - 为 Scheme 启动 SublimeREPL 会给出 OSError(2, 'No such file or directory')

我一直在尝试使用 SublimeREPL 来运行 Scheme 的交互式解释器,但我不断收到错误消息“OSError(2, 'No such file or directory')”。我知道这可能是 Main.sublime-menu 中的文件路径问题,但我似乎无法弄清楚。不知道我是否遗漏了一些明显的东西或什么。任何帮助,将不胜感激!这是我在 SublimeREPL/config/Scheme 中的配置文件(安装后未更改):

0 投票
2 回答
5587 浏览

r - SublimeREPL 无法找到 R

好吧,这让我发疯了。我之前设置过这个,删除了 Sublime Text,现在我不记得正确的配置是什么了。

非常简单:我正在通过 SublimeREPL 运行 R,并且需要将 REPL 指向安装 R 的位置。

我按照http://sublimerepl.readthedocs.org/en/latest/上的说明进行操作,其中说要进入用户定义的 REPL 设置并添加以下内容:

路径指向正确目录的位置。我试着用

它仍然无法找到 R,而且现在它给了我错误:

我知道这是一个简单的解决方法。谁能指出我在这里做错了什么?


*我正在使用 Sublime Text 3。我以前有这个工作,但在 Sublime Text 2 上。

0 投票
0 回答
1225 浏览

python - 崇高文本2 + sublimeREPL中的熊猫模块?

我希望这个问题在这里是合法的,我一直在研究,但运气不佳,所以我认为值得一试。

我已经安装了 sublimeREPL 插件的 Sublime Text 2。我能够在 repl 中运行 python 2.7.5,它非常可靠。我的目标是让 sublime + repl 作为我的 IDE,专门用于科学软件包,例如 matplotlib、pandas、numpy 等。例如,我希望能够import pandas, pylab通过 repl 运行一些代码并能够绘图就好像我是从一个典型的 ipython shell 做的一样。

我的问题是,尽管通过 Enthought Python Distribution 安装了 numpy、pandas、matplotlib 包并能够通过 IPython 使用它们,但我无法通过 REPL 来实现。我对这样的包管理比较陌生,有没有办法让我通过 REPL 让它工作?

0 投票
2 回答
230 浏览

python - Sublime Text 2 和交互式 Macports Python 2.7 会话

我一直在尝试从 sublime text 2 中以交互方式运行 python。

我已经尝试了这个线程中的建议:从 Sublime Text 2 中以交互方式运行 Python

并使用键绑定:

但是,这可行,但给了我和错误,因为我无法访问我的 python 模块。

这是我正在运行的构建,它工作正常,但是它总是在我可以使用交互模式之前退出。

提前感谢您阅读本文!

0 投票
2 回答
3505 浏览

windows-8 - Sublime Text、SublimeREPL、Clojure 和 Windows 8

我已经让 Leiningen 和 Clojure 在 Windows 8 上与 Sublime Text 分开工作(例如,我可以得到一个在 Windows PowerShell 中工作的 repl)。

我的问题是我无法让 SublimeREPL 在 SublimeText 中工作(REPL 加载但不执行任何操作)。是否有任何我可能遗漏的简单陷阱,或者如果没有,我可以遵循一系列步骤来排除故障?

0 投票
1 回答
2769 浏览

python - Sublime2 and SublimeREPL

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:

When I try to save the file I get another error: "Error trying to parse setting: Expected value in..." and it points to the SublimeREPL file.

The entire file is the generic version that comes with the install:

}

I am trying to evaluate selected code in Sublime2 with Python.

The above is what I added to the user file (SublimeREPL.sublime-settings - User). There is nothing else in the file besides what I added.

0 投票
1 回答
180 浏览

sublimetext2 - Sublime Text 2 REPL 使用用户插件运行 iPython 文件

我正在尝试在 Sublime Text 2 的交互式 shell 中运行 iPython 文件。这是我编写的第一个插件。

这是我到目前为止所拥有的:

这里的问题是我没有得到一个交互式环境。景色全乱了。任何想法如何解决这一问题?

谢谢

0 投票
0 回答
161 浏览

python - Sublime Text 2 和 Repl - 运行 python

我开始使用 Sublime Text 2 和 REPL 并遇到了一些问题。当我运行文件时,它告诉我文件 du 不存在。如果脚本是直接从终端构建的,它就可以完美运行。

代码

日志

我尝试过类似的东西os.chdir(os.path.dirname(os.path.abspath(sys.argv[0]))) reload(sys)__file__但它们不起作用。

任何想法为什么__file__在通过 Sublime Text 2 REPL 运行或文件存储在哪里时不起作用?

0 投票
1 回答
1972 浏览

python - 在 Sublime Text 3 和 Ipython shell 中加载 SublimeREPL 的问题

我一直试图解决这个问题一段时间,但我无法解决它。我将 SublimeREPL 与 Sublime Text 3 一起使用。每当我尝试从 SublimeREPL 启动 Ipython shell 时,都会收到此错误:

问题似乎出在 application.py 模块中的这个 ZMGTerminalIPythonApp 对象上。当我从命令行加载它时,Ipython 工作得很好。

更新:所以我也尝试直接从命令行运行 ipy_repl.py 文件。我原以为它会失败,但它实际上工作得很好。我没有收到上面的错误。所以不清楚为什么从 ST3 调用 SublimeREPL 时出现上述错误,但是当我从命令行调用 SublimeREPL ipython shell 时,一切正常。

有没有其他人能够解决这个问题?