datalad-handbook/docs/basics/topic/py-or-py3.rst
Michael Hanke 46d995ea2b Normalize code blocks
- console lexer for anything that is a console session
- some other specialized lexers when it makes sense
- always with prompt, when in a console session, or for commands that
  are meant to be executed

Closes #1013
2023-11-09 15:17:13 +01:00

10 lines
494 B
ReStructuredText

If executing the code below returns an exit code of 9009, there may be no ``python3`` -- instead, it is called solely ``python``.
Please run the following instead (adjusted for line breaks, you should be able to copy-paste this as a whole):
.. code-block:: console
> datalad run -m "analyze iris data with classification analysis" ^
--input "input/iris.csv" ^
--output "pairwise_relationships.png" ^
--output "prediction_report.csv" ^
"python code/script.py {inputs} {outputs}"