简体   繁体   English

如何在Atom中运行Julia脚本

[英]How to run a Julia script in Atom

I just found the Atom text editor on OSX. 我刚刚在OSX上找到了Atom文本编辑器

When I try to run a Julia script in Atom, like in Juno , I get a path error: 当我尝试在Atom中运行Julia脚本时,就像在Juno中一样 ,我得到一个路径错误:

在此输入图像描述

Changing my path by editing ~/.profile doesn't work... How can I get this to run? 通过编辑~/.profile改变我的路径不起作用......如何~/.profile运行?

Go to Atom --> Open Your Init Script 转到Atom - >打开您的Init脚本

在此输入图像描述

There, in the init.coffee file, put this: 在init.coffee文件中,放置:

process.env.PATH = ["/Applications/Julia-0.4.0-dev-a9e0dd2fb2.app/Contents/Resources/julia/bin",
 process.env.PATH].join(":")

and it should run when you do + i . 它应该在你做 + i时运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM