I've been trying out notebooks in Microsoft Fabric. More specifically in Azure Synapse (both in Data Science and Data Engineering, doesn't seem to matter which).
I've been successful in doing everything else as well as I could with Python (I'm following Microsoft Learn's Python documentation, but doing the exercise using R), but the one thing I can't seem to get working is ggplot2 plots.
I don't receive any error messages (I do get the same warning messages that I would when everything is working), but the plots just won't appear. Naturally, I checked that the code works locally in RStudio.
I've also successfully visualized data with all the different Python packages, in a separate notebook. Both are using the same default environment Runtime 1.2 (Spark 3.4 etc.). I even tried changing to Runtime 1.1 (Spark 3.3 etc.), but no change.
Thanks, Antti: I noticed that you didn't have to load any libraries to execute the code — what did you do to have SparkR recognize the ggplot() function?
I see — thanks, Antii. Since this was brand new notebook, I can only guess that there is something about your Azure Synapse settings that is preventing the plot from being rendered as output: I executed the same code in an Azure Synapse notebook of my own, and the plot was rendered as output.
At this point, it sounds like this is not an R issue, so this forum may not be of much help and I would recommend looking for help directly from Microsoft.