jupyter-xeus / xeus-octave

Jupyter kernel for GNU Octave
https://xeus-octave.readthedocs.io/
GNU General Public License v3.0
57 stars 10 forks source link

Error: X11 #103

Open dennisangemi opened 1 year ago

dennisangemi commented 1 year ago

Description

I've tried to plot data but the kernel died

fatal: caught signal Segmentation fault -- stopping myself...

and from terminal I got:

GLFW Error: X11: The DISPLAY environment variable is missing (65544)
Cannot initialize GLFW
Run with XEUS 3.0.5

Could you help me? Thanks!

rapgenic commented 1 year ago

This is due to xeus-octave needing X11 to run. I think you have two possibilities here:

  1. Install xvfb-run (virtual X11 implementation) and use it to run jupyter:

     $ sudo apt update
     $ sudo apt install xvfb
     $ xvfb-run jupyter lab  # or xvfb-run [whatever command you're using]
  2. Enable X11 in WSL, see https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps for example. This is in my opinion the "cleaner" route, but I have never tried it as I don't use WSL.

dennisangemi commented 1 year ago

Grazie Giulio!

I followed https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps#install-x11-apps

sudo apt install x11-apps -y

but nothing changed.

So I tried

Install xvfb-run (virtual X11 implementation) and use it to run jupyter:

$ sudo apt update
$ sudo apt install xvfb
$ xvfb-run jupyter lab  # or xvfb-run [whatever command you're using]

and now:

Thanks again for your time ;)

Addendum: