Tuesday, 5 June 2018

R Markdown: How can I make RStudio display Python plots inline instead of in new window?

So, I've been using R Markdown extensively lastly, and I'm pretty satisfied with what it can do.

However, I'm having a problem with python plots. I have a chunk of python code where I plot multiple figures in python.

When I do that with R, RStudio will display all the plots generated in this chunk side by side inline.

Unfortunately, when doing the same with a chunk of python code, RStudio opens a new Window where it displays the plot, then the code execution is halted until I close that window, then it plots the next figure, I have to close it again, etc etc.

Is there a possibility to force RStudio to put the figures inline, and then continue code execution? Thanks for your help in advance!



from R Markdown: How can I make RStudio display Python plots inline instead of in new window?

No comments:

Post a Comment