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?