How to display the plot in the Python chunk

The code is trying to turn R into Jupytr and won't work. See R Interface to Python plot and ggplot just don't know how to render plt.show() Work the example in the link to see how to get where you want to go.

Quick roadmap: have a python function to generate your df, use source_python bring it into the R environment and from there lay out your plots using either ploy or ggplot