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
warnings.warn('Could not switch backend to TkAgg. This may impact performance of the plotting functions.')
This creates a whole bunch of issues:
silently changes the backend that may have been previously set by the user
If tkinter isn't installed or set up, matplotlib falls back to the non-GUI Agg backend. This means plots won't display at all, even if there is a different non-tkinter backend available
In environments without X11 installed (e.g., small Docker containers), the warning is either shown or has to be suppressed manually any time hypertools is imported, even if not for plotting.
if imported into a notebook, it creates a phantom Python process that can't be killed without the IPython kernel dying
if hypertools is imported aftermatplotlib.pyplot, no plots will show at all because of a post-execute callback that matplotlib sets when imported into a notebook where the backend hasn't been manually set yet.
I'm working on a fix to this and will open a PR once finished
The text was updated successfully, but these errors were encountered:
the
plot
submodule currently tries to set the backend toTkAgg
whenhypertools
Is first imported, and shows a warning if it fails.hypertools/hypertools/plot/__init__.py
Lines 1 to 10 in 9ac3dc1
This creates a whole bunch of issues:
tkinter
isn't installed or set up, matplotlib falls back to the non-GUIAgg
backend. This means plots won't display at all, even if there is a different non-tkinter
backend availablehypertools
is imported, even if not for plotting.matplotlib.pyplot
, no plots will show at all because of a post-execute callback that matplotlib sets when imported into a notebook where the backend hasn't been manually set yet.I'm working on a fix to this and will open a PR once finished
The text was updated successfully, but these errors were encountered: