In [1]:
from xv.chemistry.environment import EnvironmentManager
In [2]:
ke = EnvironmentManager()
ke
Out[2]:
In [3]:
ke.printProblemTypes()
In [4]:
from IPython.display import HTML
n = len(ke._problemTemplates)
max_loop = 2
for j in range(0, max_loop):
for i in range(n):
problem_type = i
display(HTML(f"<h2>problem_type: {problem_type}/{n-1} (loop {j}/{max_loop-1})</h2>"))
ke.getRandomProblem(problem_type = problem_type, verbose = True)
display(ke.printProblem())
display(HTML(f"<h6>Answer:</h6>"))
display(ke.printAnswer())
display(HTML(f"<h6>Solution:</h6>"))
display(ke.printSolution())
pass
In [ ]: