scikit-hep / iminuit

Jupyter-friendly Python interface for C++ MINUIT2
https://scikit-hep.org/iminuit
Other
278 stars 71 forks source link

Minuit.interactive outside of Jupyter notebooks #771

Open HDembinski opened 1 year ago

HDembinski commented 1 year ago

Minuit.interactive can detect whether it is run inside a notebook and only then generate the UI with ipywidgets. Outside of a notebook, it could generate the UI with PyQt. This would allow one to call Minuit.interactive for debugging when some fit in a long-running script fails that does a lot of fits at once.

CarlosMDLR commented 2 months ago

Hello Hans, sorry for the question, but right now I am interested in generating the UI without using a notebook and using PyQt, but I can't find a way to do it after quite a few attempts. Is there a direct way to do it, or some documentation about it that I missed? Thanks for your time

HDembinski commented 2 months ago

Hi Carlos, it is not possible at the moment to use the interactive mode outside of a notebook, since it is based on the ipywidgets library at the moment.

This issue exists as a reminder to implement an alternative UI based on PyQt that open in a separate window, but this does not exist yet.