New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pandas plot display a plot only for the first cell executed (jupyterlab4) #15233
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
It works for me with matplotlib 3.6.2 and pandas 2.0.3. You are using an older version of matplotilb (and pandas). Could you try upgrading |
Thank you! After running the cells for the second time, is there any error in the web JS console? Could you paste these if any? |
@krassowski , there is no errors in the console (I have all the types of output checked). There is no output difference between the first and following cell executions. |
Does it also happen with visualisations which are not matplotlib-based, or is it specific to matplotlib? |
Description
When using
pandas
with the default backend (matplotlib
), the plot is displayed only for the first cell that plots something. Later calls to the same cell or any other cell with the pandas plot functionality doesn't display the plot, only the name of the object, e.g<AxesSubplot:>
. This behavior can be fixed when calling once, in any cell,%matplotlib inline
. I never found this behavior injupyterlab 2.x or 3.x
and i haven't called%matplotlib inline
in years.Reproduce
Execute this code in a clean notebook
Executing the cell again doesn't display the plot. New cells with the same or any other code using the plot functionality doesn't display the plots.
Im in arch linux with:
jupyterlab 4.0.6
matplotlib 3.5.3
,3.8.0
pandas 1.5.3
python 3.10.9
firefox 117.0.1
The text was updated successfully, but these errors were encountered: