There’s a number of issues at play, but :
I have native R functions that I’m generating plotly charts for, in the context of a larger jupyter notebook for which the main language is python. I have coded the plotly functions for this in python, and tried the equivalent code in R (wrapped up in rmagic). I’ve also tried the code for both in their native IDEs (spyder, rstudio) and work fine.
- Using the python code, a blank canvas is printed in place of the plot, but on previous attempts, the plot appears fine (inconsistent)
- Using jupyter rmagic, no plot is displayed (not even a blank canvas). “print§” returns nothing either, but p is of type “list”.
- Under a native R kernel, a simple example scatter plot works.
I’m happy to run this all in python if someone could tell me how I can consistently display the plots, but if not, Can I run the R plot_ly function within jupyter cell magic?