WolframResearch / WolframLanguageForJupyter

Wolfram Language kernel for Jupyter notebooks
MIT License
1.03k stars 124 forks source link

Output plots are missing when creating a PDF through Jupyter Lab Export notebook #135

Open akvsak opened 2 years ago

akvsak commented 2 years ago

I wanted to try the plotting capability of Wolfram Engine through Jupyter. The plots show well on the notebook but are missing when trying to export as PDF.

Export to HTML works fine and includes the images.

Attached below are the files for inspection:

PDF Export Output file: wr.pdf

HTML Export Output file (adding .TXT extension to please GH): wr.html.txt

IPYNB File (adding .TXT extension to please GH): wr.ipynb.txt

System Info:

Wolfram Engine (Free) Linux 13.1
Linux x86 (64-bit)
Jupyter Lab Version 3.4.4

Brief Code View:

IN: 
1+1
OUT:
2

IN:
Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}]
OUT:
Output

IN:
data = Table[Sin[j^2 + i], {i, 0, Pi, Pi/5}, {j, 0, Pi, Pi/5}];
OUT:

IN:
ListPlot3D[data, Mesh -> None, InterpolationOrder -> 3, 
 ColorFunction -> "SouthwestColors"]
OUT:
Output

IN:
Plot3D[Im[ArcSin[(x + I y)^4]], {x, -2, 2}, {y, -2, 2}, Mesh -> None, 
 PlotStyle -> Directive[Yellow, Specularity[White, 20], Opacity[0.8]],
  ExclusionsStyle -> {None, Red}]
OUT:
Output

IN:
data = Table[Sqrt[
   x^2 + y^2 + z^2], {z, 0, 3, 0.1}, {y, 0, 3, 0.1}, {x, 0, 3, 0.1}];
OUT:

IN:
ListSliceContourPlot3D[data, "CenterPlanes"]
OUT:
Output

IN:
%Version
OUT:
Output

IN:
$VersionNumber
OUT:
13.1

IN:
$ReleaseNumber
OUT:
0

IN:
$System
OUT:
Linux x86 (64-bit)