@@ -31,20 +31,20 @@ You also need to have Julia installed and `julia` on your command line. Test it
31
31
typing the following on the command line
32
32
33
33
``` console
34
- $ julia -h
34
+ julia -h
35
35
```
36
36
37
37
If an error is shown instead of a help page, you can install Julia on Unix systems with
38
38
39
39
``` console
40
- $ conda install -c conda-forge julia
40
+ conda install -c conda-forge julia
41
41
```
42
42
43
43
or choose one of the installers on this [ page] ( https://julialang.org/downloads/ ) .
44
44
45
45
## Usage
46
46
47
- To create a task which runs a Julia script, define a task function with the
47
+ To create a task that runs a Julia script, define a task function with the
48
48
` @pytask.mark.julia ` decorator. The ` script ` keyword provides a path relative to the
49
49
task module to the Julia script.
50
50
@@ -111,11 +111,11 @@ config["number"] # Is 1.
111
111
### Debugging
112
112
113
113
In case a task throws an error, you might want to execute the script independently from
114
- pytask. After a failed execution, you see the command which executed the Julia script in
114
+ pytask. After a failed execution, you see the command that executed the Julia script in
115
115
the report of the task. It looks roughly like this
116
116
117
117
``` console
118
- $ julia < options> -- script.jl < path-to> /.pytask/task_py_task_example .json
118
+ julia <options> -- script.jl <path-to>/.pytask/pytask-julia/<uuid> .json
119
119
```
120
120
121
121
### Managing Julia environments
@@ -150,7 +150,7 @@ def task_run_jl_script():
150
150
151
151
### Command Line Options
152
152
153
- Command line options can be pass via the ` options ` keyword argument.
153
+ Command line options can be passed via the ` options ` keyword argument.
154
154
155
155
``` python
156
156
@task (kwargs = {" path" : Path(" out.csv" )})
@@ -159,7 +159,7 @@ def task_run_jl_script():
159
159
pass
160
160
```
161
161
162
- This example will execute the script using to threads.
162
+ This example will execute the script using threads.
163
163
164
164
### Repeating tasks with different scripts or inputs
165
165
@@ -225,8 +225,8 @@ config = YAML.load_file(ARGS[1])
225
225
226
226
Note that the ` YAML ` package needs to be installed.
227
227
228
- If you need a custom serializer, you can also provide any callable to ` serializer ` which
229
- transforms data to a string. Use ` suffix ` to set the correct file ending.
228
+ If you need a custom serializer, you can also provide any callable for ` serializer `
229
+ which transforms data into a string. Use ` suffix ` to set the correct file ending.
230
230
231
231
Here is a replication of the JSON example.
232
232
@@ -255,7 +255,7 @@ julia_serializer = "json"
255
255
** ` julia_suffix ` **
256
256
257
257
Use this option to set the default suffix of the file which contains serialized paths to
258
- dependencies and products and more.
258
+ dependencies, products and more.
259
259
260
260
``` toml
261
261
[tool .pytask .ini_options ]
0 commit comments