def ask_string(question, default=None):
    if default:
        question += " (%s)" % default
    ui.info(ui.green, "::", ui.reset, question)
    try:
        answer = read_input()
    except KeyboardInterrupt:
        return default
    if not answer:
        return default
    return answer
Returns the marginal distribution over variables.
dataset/ETHPy150Open aldebaran/qibuild/python/qisys/interact.py/ask_string--crossover with--dataset/ETHPy150Open pgmpy/pgmpy/pgmpy/factors/JointProbabilityDistribution.py/JointProbabilityDistribution.marginal_distribution