Skip to content

Support for python console (pycon) as in doctests #45

Description

@staadecker

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions