- At present, only available for ReStructured Text. Should be possible for MD and ASCIIDoc in the future;
- All code blocks in the node or tree must be for the same code language (e.g., julia);
- There is no way to pass arguments to the executing program. For example, you cannot give a classpath to java.exe.
These are essentially the same limitations as for running Python code in VR3.
The ini file must be in a vr3 subdirectory of the .leo directory. VR3 reads this file on startup to discover what languages are known and the paths to their executables. Currently, julia and javascript can be set up.
The ini file must have a section like the following:
[executables]
javascript = D:\usr\graalvm-ce-java11-20.0.0\languages\js\bin\js.exe
julia = C:\Users\tom\AppData\Local\Programs\Julia 1.5.3\bin\julia.exe
If any of the possible languages is not specified in the ini file, no error is raised; VR3 will simply not try to execute the code for that language (and will write a message to Leo's log pane).
One quirk is that some languages may not have a Leo colorizer file. Julia is one of these. However, the colorizer used by VR3 may still be able to colorize it (true for Julia). In the body frame, Leo tries to colorize the code anyway as best it can, which can be a little strange, but in the VR3 rendering pane, the colorizing will be OK.
So please give me your thoughts about this experimental functionality. It's not available for anyone else to play with yet, but I could arrange that if anyone wants.