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
In a jupyter notbook, when importing pandas profiling, matplotlib won't show any plots.
This also happens in a normal script. Matplotlib raises the warning UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.. This does not happen if I don't import the pandas profiling.
To Reproduce
In a jupyter notebook, the following code will not show any plots
But by removing the second line (from pandas_profiling import ProfileReport) it will behave as expected
The bug can also be reproduced in a normal script, by adding plt.show() at the end.
Version information:
Version information is essential in reproducing and resolving bugs. Please report:
Python version: 3.9.7
Environment: jupyter notebook in vs code, and from comand line
Also ran into it with pandas_profiling 3.1.0.
Solved by importing matplotlib after pandas_profiling and adding the magic command. Magic command is required otherwise nothing is displayed:
import pandas_profiling
import matplotlib.pyplot as plt
%matplotlib inline
plt.plot([1,2,3]);
Describe the bug
In a jupyter notbook, when importing pandas profiling, matplotlib won't show any plots.
This also happens in a normal script. Matplotlib raises the warning
UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
. This does not happen if I don't import the pandas profiling.To Reproduce
In a jupyter notebook, the following code will not show any plots
But by removing the second line (
from pandas_profiling import ProfileReport
) it will behave as expectedThe bug can also be reproduced in a normal script, by adding
plt.show()
at the end.Version information:
Version information is essential in reproducing and resolving bugs. Please report:
pip
:Click to expand Version information
The text was updated successfully, but these errors were encountered: