Hello everyone,
I try to use MiniZinc for a small project, but while I really like the language, I'm not yet satisfied with my workflow.
I do have a huge amount of input data, which requires pre-processing and analysis. I'm used to do such things in a Jupyter notebook using Python.
My idea was to save my MiniZinc model as mzn-file, to do the data pre-processing in my Jupyter notebook, to create and solve the model instance via the minizinc package for Python and then to further process the results in the notebook.
However, this doesn't work, since the attempt to solve the model yields an error: RuntimeError: asyncio.run() cannot be called from a running event loop.
Working with the minizinc package outside a Jupyter notebook works nicely, but this really would not be the best workflow for me. Is there a way to use the minizinc package from inside a Jupyter notebook?
Thanks in advance and kind regards,
Thomas