简体   繁体   English

Juno IDE for Julia,如何互动?

[英]Juno IDE for Julia, how to interact?

One way to comfortably use an IDE in an interactive language is to interact via the IDE in a command line environment. 在交互式语言中轻松使用IDE的一种方法是在命令行环境中通过IDE进行交互。 I am wondering if that is a possibility in Juno. 我想知道朱诺是否有可能。 In other words, is there a command line environment as in Matlab, to call functions, give initial values, and run expressions. 换句话说,是否有Matlab中的命令行环境,调用函数,给出初始值和运行表达式。 If so what is the way to access it? 如果是这样,访问它的方式是什么?

Note: There is a console window in Juno, but I can't find a way to insert my commands inside that. 注意:Juno中有一个控制台窗口,但我找不到在其中插入命令的方法。

Note: The question and this answer apply to the version of Juno that was based on LightTable. 注意:问题和答案适用于基于LightTable的Juno版本。 The current version is based on Atom and has an interactive console. 当前版本基于Atom,并具有交互式控制台。


You can't enter commands into the console in Juno--that's for displaying output. 您无法在Juno的控制台中输入命令 - 这是用于显示输出。 Commands can be submitted from within the editor by setting your cursor in the line to submit and pressing Ctrl + Enter or Shift + Enter . 通过将光标设置在提交行并按Ctrl + EnterShift + Enter ,可以在编辑器中提交命令。 The value will then be displayed in a small popup next to the line and the output will be printed to the console if you have the console visible. 然后,该值将显示在该行旁边的小弹出窗口中,如果您可以看到控制台,则输出将打印到控制台。

Note that the inability to use the console as you desire is by design. 请注意,无法根据需要使用控制台是设计使然。 See here for information about the console from the Juno docs. 有关Juno文档中控制台的信息,请参阅此处

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

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