Skip to content

Commit

Permalink
Update overview.rst
Browse files Browse the repository at this point in the history
Separated shell command from Python code block
  • Loading branch information
Kanegraffiti authored Aug 28, 2024
1 parent fb4cdd5 commit c6c674c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/userguide/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,12 @@ A Parsl script is a Python script that defines the tasks you want to run in para

Here's a simple example:

.. code-block:: python
.. code-block:: bash
!pip install parsl
.. code-block:: python
import parsl
from parsl.config import Config
from parsl.executors import HighThroughputExecutor
Expand All @@ -256,7 +259,7 @@ Here's a simple example:
return x * 2
results = []
for i in range(10):
for i in range 10:
results.append(my_task(i))
# Indent the following block to be part of the 'for' loop
Expand Down

0 comments on commit c6c674c

Please sign in to comment.