-
-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not seeing any output after running plotly() with julia 1.9 #1073
Comments
Upon further review this is happening after running plotly() as in
Filing an issue with Plots.jl |
I have the same problem with the Julia 1.9 release. If I load Jupyter notebook, then use Plots with plotly() backend, the code below does not display the plot object.
If I use the gr() backend, the plot image does display in the noteboook. I should add that if I use Plots with plotly() from the command line REPL, it does work - a tab on my browser opens and displays the plot. Please fix. |
As a temporary solution, one can install and use the plotlyjs() backend instead of plotly(). using Pkg From Jupyter notebook: |
If there is a problem with plotly, maybe report the error there? It's not clear to me that the problem is with IJulia. |
It looks like the problem with Plotly is that its output MIME type I can fix it by defining: Base.istextmime(::MIME"application/vnd.plotly.v1+json") = true but it really seems like this should be defined in Plotly.jl. (This |
i.e. you're having the problem I identified above, which is solved in the latest release (1.24.2). Have you tried updating IJulia? |
I have confirmed that I have upgraded IJulia to 1.24.2 |
Maybe you need to restart vscode? |
stevengj - thanks for fixing this bug. IJulia + Plots + plotly() backend now works again for me after updating Ijulia from v1.24.0 to v1.24.2. |
This bug is currently present on MS Windows (tested 6 Sep 2023), but not on Linux. Plotly backend does not display a plot in Jupyter notebook. I tested on three PCs, running MS Windows 10, MS Windows 11, and Ubuntu Linux. I did a fresh install of Julia 1.9.3 with added packages: IJulia v1.24.2 and Plots v1.39.0 On MS Windows, no output is shown within Jupyter notebook if I execute: using Plots Oddly, on my Ubuntu Linux installation, running the same version of Julia 1.9.3 and updated packages, it correctly displays the plot. |
The old bug was fixed, I think. If this is a new bug, it should be a new issue. But it's hard to tell from your description what is now causing the problem for you. What is the value of |
On Windows 11 (which shows no plot display, just a blank space) I get: KeySet for a Dict{String, Union{String, JSON.Writer.JSONText}} with 1 entry. Keys: On my Ubuntu Linux, which does display the plot, the keys(...) output gives the same text as Windows: |
I do not know if the original problem was ever solved for Windows installations, or whether it is a new issue affecting only Windows. Looking back on the bug reports above, nobody mentions Windows, so perhaps the bug was not ever solved for Windows. |
@stevengj I have opened a new issue: The same problem is present in VS code's notebook environment. This leads me to conclude that the current problem is not within the IJulia code. It is probably within the Plots code. |
Jupyter isn't outputting anything in the cells with the julia 1.9-rc3 kernel. Please fix.
The text was updated successfully, but these errors were encountered: