octave_kernel icon indicating copy to clipboard operation
octave_kernel copied to clipboard

error when attempting to save a plot to disk from within a notebook

Open flizzer opened this issue 5 years ago • 1 comments
trafficstars

Greetings. I get the below error when trying to save a plot to my filesystem.

print -dpng 'myPlot.png'

error: __fltk_redraw__: not available without OpenGL and FLTK libraries
error: called from:
error:   /usr/local/octave/3.8.0/share/octave/3.8.0/m/plot/util/private/__fltk_print__.m at line 30, column 3
error:   /usr/local/octave/3.8.0/share/octave/3.8.0/m/plot/util/print.m at line 422, column 14

I'm on macOS Catalina (10.15.4) and am using JupyterLab 2.1.0. When using the octave-cli, the print command works as expected. Do you know of any reason why these libraries wouldn't be referenced by octave_kernel?

Thanks for any insight.

Brian

flizzer avatar Apr 12 '20 18:04 flizzer

Hi @flizzer, we attempt to mimic what Octave does at startup here. Perhaps something is missing there.

blink1073 avatar Apr 13 '20 10:04 blink1073