Here's an excerpt from some documentation I'm currently writing:
m.Buy = pf.Variable(data[["food"]], lb=0)
If you print the variable, you'll see it actually contains a tofu and chickpeas variable!
>>> m.Buy
<Variable name=Buy lb=0 size=2 dimensions={'food': 2}>
[tofu]: Buy[tofu]
[chickpeas]: Buy[chickpeas]
Currently the pycon continuation code fence isn't detected as a test. It would be great if it could be and if it could run in the same way that doctests run!
Here's an excerpt from some documentation I'm currently writing:
Currently the
pycon continuationcode fence isn't detected as a test. It would be great if it could be and if it could run in the same way that doctests run!