Getting Started with Julia
上QQ阅读APP看书,第一时间看更新

Installing Sublime-IJulia

The popular Sublime Text editor (http://www.sublimetext.com/3) now has a plugin based on IJulia (https://github.com/quinnj/Sublime-IJulia) authored by Jacob Quinn. It gives you syntax highlighting, autocompletion, and an in-editor REPL, which you basically just open like any other text file, but it runs Julia code for you. You can also select some code from a code file and send it to the REPL with the shortcut CTRL + B, or send the entire file there. Sublime-IJulia provides a frontend to the IJulia backend kernel, so that you can start an IJulia frontend in a Sublime view and interact with the kernel. Here is a summary of the installation, for details you can refer to the preceding URL:

  1. From within the Julia REPL, install the ZMQ and IJulia packages.
  2. From within Sublime Text, install the Package Control package (https://sublime.wbond.net/installation).
  3. From within Sublime Text, install the IJulia package from the Sublime command palette.
  4. Ctrl + Shift + P opens up a new IJulia console. Start entering commands, and press Shift + Enter to execute them. The Tab key provides command completion.