title: Python Code Chunk Graphs not showing up in R Markdown
body: <p>I need to include Python code chunks in an R Markdown HTML. However, when I do so, the plot doesn't show up.</p>
  <p>This is the code chunk I have which want to implement. I know this works in Python.</p>
  <pre><code>```{python, results='asis'}
  import numpy as np
  import matplotlib.pyplot as plt
  import numpy.random as rng
  import matplotlib.cm as cm
  from matplotlib.animation import FuncAnimation
  
  radii=(rng.random(int(1e3))+1)**2
  iota=2*np.pi*rng.random(int(1e3))
  x_posit=np.sqrt(radii)*np.cos(iota)
  y_posit=np.sqrt(radii)*np.sin(iota)
  plt.plot(x_posit, y_posit, 'go')
  ```
  </code></pre>
  <p><a href="https://i.stack.imgur.com/G0Dfs.png" rel="nofollow noreferrer">I expect to get a plot like this</a></p>
  <p><a href="https://i.stack.imgur.com/bH6lu.png" rel="nofollow noreferrer">But instead I get this</a>, that is no graph in the R markdown Document. I'm knitting to HTML</p>