plotnine.session.last_plot

last_plot()

Retrieve the last plot rendered in this session

Returns

ggplot | Compose | None

The last plot that was rendered via draw(), save(), or notebook display. Returns None if no plot has been rendered yet.