Checklist
Describe the bug
If topoly is imported by a script imported by a notebook (first notebook -> topostats.processing -> topostats.tracing.ordered_tracing -> topoly) it changes matplotlib's backend mode from inline to something else (possibly Agg or similar).
In effect this causes plots to be displayed in new windows rather than in the notebook under cells which at a minimum is an inconvenience and for some machines will make the plots not viewable at all.
Copy of the log-file from running with topostats --log-level debug <command>
N/A
Include the configuration file
N/A
To Reproduce
- Run a notebook that imports
topoly.jones and topoly.translate_code, alternatively a notebook that imports topostats.processing as you can follow the imports from processing.py down to these topoly methods.
- Create a basic plot and display it any way (
plt.show(), fig)
TopoStats Version
Git main branch
Python Version
3.11
Operating System
Windows
Python Packages
No response
Checklist
mainbranch to check if the issue persists. Instructions on how to do this can be found here.topostats --core 1 process.topostats --log-level debug <command>.topostats --versionDescribe the bug
If topoly is imported by a script imported by a notebook (first notebook ->
topostats.processing->topostats.tracing.ordered_tracing->topoly) it changes matplotlib's backend mode from inline to something else (possiblyAggor similar).In effect this causes plots to be displayed in new windows rather than in the notebook under cells which at a minimum is an inconvenience and for some machines will make the plots not viewable at all.
Copy of the log-file from running with
topostats --log-level debug <command>N/A
Include the configuration file
N/A
To Reproduce
topoly.jonesandtopoly.translate_code, alternatively a notebook that importstopostats.processingas you can follow the imports fromprocessing.pydown to these topoly methods.plt.show(),fig)TopoStats Version
Git main branch
Python Version
3.11
Operating System
Windows
Python Packages
No response