This is a markdown-related bug that may end up being common in Nengo code:
nengo.Connection(a, b, function=foo) # bar*(pi*(gamma))
with nengo.Simulator(model, dt=dt) as sim:
sim.run(1.0)
It has something to do with the function
keyword argument, in conjunction with some number of brackets afterwards (achieved by the comment above). I believe it is being auto-detected as the wrong language, because a work-around is to write:
```python
< code here >
```
nengo.Connection(a, b, function=foo) # bar*(pi*(gamma))
with nengo.Simulator(model, dt=dt) as sim:
sim.run(1.0)
Not sure what can be done about it on this end, but if we could for instance bias markdown towards thinking it’s Python
whenever unsure that might be good. This might be commonplace since function
is frequently used as a keyword argument in Nengo code.