Skip to content

Commit 45e2886

Browse files
committed
fix syntax highlighting and syntax error
1 parent 6a26d8b commit 45e2886

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/source/tutorial/tutorial.advanced-topics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ The simplest way to accomplish this is simply to use the
413413
414414
learner = adaptive.Learner1D(f, (-1, 1))
415415
416-
adaptive.BlockingRunner(learner, goal=lambda: l: l.loss() < 0.1)
416+
adaptive.BlockingRunner(learner, goal=lambda l: l.loss() < 0.1)
417417
418418
If you use `asyncio` already in your script and want to integrate
419419
``adaptive`` into it, then you can use the default `~adaptive.Runner` as you

docs/source/tutorial/tutorial.parallelism.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ For example, you create the following file called ``run_learner.py``:
9090
9191
On your laptop/desktop you can run this script like:
9292

93-
.. code:: python
93+
.. code:: bash
9494
9595
export MPI4PY_MAX_WORKERS=15
9696
mpiexec -n 1 python run_learner.py
@@ -99,13 +99,13 @@ Or you can pass ``max_workers=15`` programmatically when creating the `MPIPoolEx
9999

100100
Inside the job script using a job queuing system use:
101101

102-
.. code:: python
102+
.. code:: bash
103103
104104
mpiexec -n 16 python -m mpi4py.futures run_learner.py
105105
106106
How you call MPI might depend on your specific queuing system, with SLURM for example it's:
107107

108-
.. code:: python
108+
.. code:: bash
109109
110110
#!/bin/bash
111111
#SBATCH --job-name adaptive-example

0 commit comments

Comments
 (0)