Skip to content

Commit 59528b4

Browse files
rhttpike3
authored andcommitted
docs: Apply manual fixes to howto.md
1 parent 2b37956 commit 59528b4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/howto.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ For such functions, include the prefix "model." before the model function name,
1818
For example, consider a central employment exchange which adjust the wage rate common to all laborers
1919
in the direction of excess demand.
2020

21-
```python stage_list=[Send_Labour_Supply, Send_Labour_Demand, model.Adjust_Wage_Rate] self.schedule = StagedActivation(self,stage_list,shuffle=True)
22-
21+
```python
22+
stage_list=[Send_Labour_Supply, Send_Labour_Demand, model.Adjust_Wage_Rate] self.schedule = StagedActivation(self,stage_list,shuffle=True)
2323
```
2424

25-
## Using `` `numpy.random` ``
25+
## Using `numpy.random`
2626

2727
Sometimes you need to use `numpy`'s `random` library, for example to get a Poisson distribution.
2828

@@ -35,7 +35,7 @@ class MyModel(Model):
3535

3636
And just use `numpy`'s random as usual, e.g. `self.random.poisson()`.
3737

38-
## Using multi-process `` `batch_run` `` on Windows
38+
## Using multi-process `batch_run` on Windows
3939

4040
You will have an issue with `batch_run` and `number_processes = None`. Your cell will
4141
show no progress, and in your terminal you will receive *AttributeError: Can't get attribute 'MoneyModel' on
@@ -61,5 +61,5 @@ if __name__ == '__main__':
6161
```
6262

6363
If you would still like to run your code in Jupyter you will need to adjust the cell as noted above. Then you can
64-
you can add the [nbmultitask library](<(https://nbviewer.org/github/micahscopes/nbmultitask/blob/39b6f31b047e8a51a0fcb5c93ae4572684f877ce/examples.ipynb)>)
64+
you can add the [nbmultitask library](https://nbviewer.org/github/micahscopes/nbmultitask/blob/39b6f31b047e8a51a0fcb5c93ae4572684f877ce/examples.ipynb)
6565
or look at this [stackoverflow](https://stackoverflow.com/questions/50937362/multiprocessing-on-python-3-jupyter).

0 commit comments

Comments
 (0)