-
-
Notifications
You must be signed in to change notification settings - Fork 424
Description
[UPDATE 2023-11-09: The problem of plotly() backend not displaying plots within Jupyter Notebook started with the release of Jupyter Notebook version 7.xx (which is installed by IJulia). See my comment further down on 9 November which gives a temporary solution via installation of an older version of Jupyter Notebook, version 6.5.x]
Bug report:
The plotly() backend of Plots does not does not display a plot within Jupyter notebook running on Windows [and MAC as reported below by gmantegna].
The bug is present on MS Windows 11/10 running Julia 1.9.3, IJulia 1.24.2 and Plots 1.39.0 [fresh installation] and Jupyter Notebook 7.04.
The following code displays a blank space instead of the plot.
using Plots
plotly()
display(plot(rand(10)))
If I use the gr() backend, the plot output does display in the notebook.
If I use Plots with plotly() from the command line REPL, it does work - a tab on my browser opens and displays the plot.
Oddly, on my Ubuntu Linux 23.04 installation, running the same version of Julia and packages (but Jupyter Notebook 6.4.12), the plotly() backend does work in Jupyter Notebook. I have not tested on MAC. The problem is however definitely present on Windows - I have tested on three different Windows PCs.
The problem is the same as an earlier issue that was closed on 4 June 2023.
"Not seeing any output after running plotly() with julia 1.9" #1073
and also reported here
JuliaPlots/Plots.jl#4739