Closed FlyingSamson closed 2 years ago
So I just tried replacing the export formats with "JPEG" instead of "PNG" and this works. I presume this is an indicator that there is some problem with my installation of the wolfram engine and/or its dependencies rather than with the Wolfram Language Kernel For Jupyter
?
I also find this problem on raspberry os, $Version -> "12.2.0 for Linux arm (32-bit)"
To anyone want to know the "JPG" fix, it's changing Format from "PNG" to "JPG" in call to ExportByteArray[]
in function toImageData[]
"Resources/OutputHandlingUtilities.wl".
I just posted this as a question to the wolfram community.
@benfre: Is your jupyter notebook running on the raspberry os itself, or also within a docker container (as in my case). If it is running on raspberry os itself, can you confirm that this is happening inside the wolfram
console also, i.e., when you execute wolfram
in terminal and run the command I mentioned in the linked post
Export["test.png", Plot[x, {x, 0, 1}]]
do you get the same error message?
@FlyingSamson @benfre Thanks for identifying this issue. I'm told that it's been reproduced and is under investigation.
This is now fixed with the latest update to Mathematica 13.0.1
What I observe
When I run, e.g.,
in the Wolfram Language kernel I get no output and the following error messages in the jupyter log:
What I expect:
To see the formula as embedded picture.
What I already tried/figured out:
The latter one
is due to a typo at this line where it should read failedInBase64 (capital "I").
The other ones
are produces at this call to ExportByteArray, but I was unable to figure out what the problem was. If I run above code in
wolfram
within the command line of the same docker container (in fact I used a terminal provided by the very same JupyterLab instance) I get the expected resultMoreover all inputs resulting in plaintext output like
Print["Hello"]
or1+1
do work as expected in the notebook displaying "Hello" and "2", respectively, so apparently something goes wrong with results that are returned as images.How can I debug this issue? For a start how can I print/log what is actually passed to the
ExportByteArray
call? Is there some logging functionality build into the kernel that would allow to append messages to the jupyter log?My environment:
$Version
gives12.2.0 for Linux ARM (32-bit) (April 7, 2021)
jupyter version
givesuname -a
givesLinux aafe17fa30e2 5.4.0-1046-raspi #50-Ubuntu SMP PREEMPT Thu Oct 28 05:32:10 UTC 2021 aarch64 GNU/Linux