You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jupyter notebook crashes upon importing spinmob because I don't have the correct backed qtagg. I suspect this is because I'm using an ARM machine and this particular mpl backend hasn't yet been ported.
I got around this by cloning the repo and importing it locally, and patching it with a try statement. Here is the piece of code causing the error, in the package's __init__
importosas_osimportsysas_sysimportmatplotlibas_mpltry:
_mpl.use('qtagg')
exceptExceptionase:
print("WARNING: not using qtagg. This might be because you don't have the latest version either Spinmob or other dependencies. Try updating your libraries. This issue has also been known to occur in Jupyter Notebooks and possibly on ARM silicon architecture. Proceeding without a backend.")
print(f"\nThe error that would have been raised is:\n{e}\n")
passimportpylab
I put the statement in question it into a try-catch block and issued a warning. Would you like me to submit a PR? Now the statement reads
Extra info:
Before cloning and modifying the source, I first pip-installed the latest version of spinmob and have tried to install all the mpl's backends.
The text was updated successfully, but these errors were encountered:
Jupyter notebook crashes upon importing spinmob because I don't have the correct backed
qtagg
. I suspect this is because I'm using an ARM machine and this particular mpl backend hasn't yet been ported.I got around this by cloning the repo and importing it locally, and patching it with a try statement. Here is the piece of code causing the error, in the package's
__init__
Here is a suggested patch:
I put the statement in question it into a try-catch block and issued a warning. Would you like me to submit a PR? Now the statement reads
Extra info:
Before cloning and modifying the source, I first pip-installed the latest version of spinmob and have tried to install all the mpl's backends.
The text was updated successfully, but these errors were encountered: