You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pytask-julia is available on `PyPI <https://pypi.org/project/pytask-julia>`_ and `Anaconda.org <https://anaconda.org/conda-forge/pytask-julia>`_. Install it with
39
+
pytask-julia is available on `PyPI <https://pypi.org/project/pytask-julia>`_ and
40
+
`Anaconda.org <https://anaconda.org/conda-forge/pytask-julia>`_. Install it with
40
41
41
42
.. code-block:: console
42
43
@@ -53,7 +54,13 @@ typing the following on the command line
53
54
54
55
$ julia -h
55
56
56
-
If an error is shown instead of a help page, you can install Julia ....
57
+
If an error is shown instead of a help page, you can install Julia on Unix systems with
58
+
59
+
.. code-block:: console
60
+
61
+
$ conda install -c conda-forge julia
62
+
63
+
or choose one of the installers on this `page <https://julialang.org/downloads/>`_.
57
64
58
65
59
66
Usage
@@ -77,8 +84,8 @@ Here is an example where you want to run ``script.julia``.
77
84
deftask_run_jl_script():
78
85
pass
79
86
80
-
Note that, you need to apply the ``@pytask.mark.julia`` marker so that pytask-julia handles the
81
-
task.
87
+
Note that, you need to apply the ``@pytask.mark.julia`` marker so that pytask-julia
88
+
handles the task.
82
89
83
90
If you are wondering why the function body is empty, know that pytask-julia replaces the
84
91
body with a predefined internal function. See the section on implementation details for
@@ -88,8 +95,8 @@ more information.
88
95
Multiple dependencies and products
89
96
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
90
97
91
-
What happens if a task has more dependencies? Using a list, the Julia script which should be
92
-
executed must be found in the first position of the list.
98
+
What happens if a task has more dependencies? Using a list, the Julia script which
99
+
should be executed must be found in the first position of the list.
93
100
94
101
.. code-block:: python
95
102
@@ -132,31 +139,65 @@ for a ``"source"`` key in the dictionary and, secondly, under the key ``0``.
132
139
Command Line Arguments
133
140
~~~~~~~~~~~~~~~~~~~~~~
134
141
135
-
The decorator can be used to pass command line arguments to ``julia``. See the
136
-
following example.
142
+
The decorator can be used to pass command line arguments to ``julia``. An important
143
+
detail is that you need to differentiate between options passed to the Julia executable
144
+
and arguments passed to the script.
145
+
146
+
First, pass options to the executable, then, use ``"--"`` as a separator, and after that
147
+
arguments to the script. Provide all arguments in a tuple or a list as below.
148
+
149
+
The following shows how to pass both with the decorator.
0 commit comments