logo

Jlcon Filter

← Back to Filter List

Jlcon


↓ examples

Runs julia (.jl) files in the repl.

Aliases for this filter

  • jlcon

Converts from file formats:

  • .jl
  • .txt

To file formats:

  • .jlcon

Available settings:

SettingDescriptionDefault
add-new-filesBoolean or list of extensions/patterns to match.False
added-in-versionDexy version when this filter was first available.0.9.9.5
additional-doc-filtersFilters to apply to additional documents created as side effects.{}
additional-doc-settingsSettings to apply to additional documents created as side effects.{}
allow-match-prompt-without-newlineWhether to require a newline before prompt.False
argsArguments to be passed to the executable.
check-return-codeWhether to look for nonzero return code.True
clargsArguments to be passed to the executable (same as 'args').
command-stringThe full command string.%(prog)s %(args)s "%(script_file)s" %(scriptargs)s "%(output_file)s"
data-typeAlias of custom data class to use to store filter output.sectioned
envDictionary of key-value pairs to be added to environment for runs.{}
examplesTemplates which should be used as examples for this filter.[u'julia']
exclude-add-new-filesList of patterns to skip even if they match add-new-files.[]
exclude-new-files-from-dirList of directories to skip when adding new files.[]
executableThe executable to be runjulia -q --no-history --no-startup
extFile extension to output.None
extension-mapDictionary mapping input extensions to default output extensions.None
helpHelp string for filter, if not already specified as a class docstring.Runs julia (.jl) files in the repl.
initial-promptThe initial prompt the REPL will display.julia>
initial-timeout10
input-extensionsList of extensions which this filter can accept as input.[u'.jl', u'.txt']
install-dir/home/ana/dev/dexy/dexy/filters
keep-originalsWhether, if additional-doc-filters are specified, the original unmodified docs should also be added.False
line-endingThe line ending returned by REPL.
mkdirA directory which should be created in working dir.None
mkdirsA list of directories which should be created in working dir.[]
nodocWhether filter should be excluded from documentation.False
outputWhether to output results of this filter by default by reporters such as 'output' or 'website'.False
output-extensionsList of extensions which this filter can produce as output.[u'.jlcon']
override-workspace-exclude-filtersIf True, document will be populated to other workspaces ignoring workspace-exclude-filters.False
path-extensionsstrings to extend path with[]
preserve-prior-data-classWhether output data class should be set to match the input data class.False
promptSingle prompt to match exactly.julia>
prompt-regexA prompt regex to match.None
promptsList of possible prompts to match exactly.[u'>>>', u'...']
ps1PS1None
ps2PS2None
ps3PS3None
ps4PS4None
record-varsWhether to add code that will automatically record values of variables.False
require-outputShould dexy raise an exception if no output is produced by this filter?True
save-vars-to-json-cmdCommand to be run to save variables to a JSON file.None
scriptargsArguments to be passed to the executable.
send-line-endingLine ending to transmit at the end of each input line.
strip-regexRegex to stripNone
tagsTags which describe the filter.[]
termTERMdumb
timeout10
trim-promptThe closing prompt to be trimmed off.julia>
use-wdWhether to use a custom working directory when running filter.True
variablesA dictionary of variable names and values to make available to this filter.{}
varsA dictionary of variable names and values to make available to this filter.{}
version-commandCommand to call to return version of installed software.julia -v
windows-version-commandCommand to call on windows to return version of installed software.None
workspace-exclude-filtersFilters whose output should be excluded from workspace.[u'pyg']
workspace-includesIf set to a list of filenames or extensions, only these will be populated to working dir.None
write-stderr-to-stdoutShould stderr be piped to stdout?True

Julia Examples

The website for julia is julialang.

Here is some julia code:

### "math"
1+2+3
1-2
3*2/12

### "operations"
x = 2; x ^= 5; x
println(x)

### "strings"
str = "Hello, world.\n"

The julia filter runs code through the julia interpreter in batch mode:

- .jl|julia

Here is the output, just what was printed to stdout:

32

THe jlcon filter runs code through the julia REPL. Here is how it's specified:

- .jl|jlcon

Here is the output:

julia> ### "math"

julia> 1+2+3
6

julia> 1-2
-1

julia> 3*2/12
0.5

julia>

julia> ### "operations"

julia> x = 2; x ^= 5; x
32

julia> println(x)
32

julia>

julia> ### "strings"

julia> str = "Hello, world.\n"
"Hello, world.\n"

Julia code can be divided into sections before processing:

- .jl|idio|jlcon

Here is just the first section:

julia> 1+2+3
6

julia> 1-2
-1

julia> 3*2/12
0.5

Content © 2013 Dr. Ana Nelson | Site Design © Copyright 2011 Andre Gagnon | All Rights Reserved.