Calling Python from bash: Difference between revisions
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
=Overview= | =Overview= | ||
=Inline Python Code= | |||
<syntaxhighlight lang='bash'> | |||
python <<EOF | |||
print('blah') | |||
EOF | |||
</syntaxhighlight> | |||
=Code in External Script= | |||
=Using the Interpreter from the a Virtual Environment= | =Using the Interpreter from the a Virtual Environment= | ||
If you want to use the interpreter from a specific virtual environment instead of the interpreter found in PATH. | If you want to use the interpreter from a specific virtual environment instead of the interpreter found in PATH. |