StreakyCobra / data-science-workspace

Data Science Workspace
2 stars 0 forks source link

Are you able to use the qtconsole with optirun/primusrun #1

Open hmaarrfk opened 6 years ago

hmaarrfk commented 6 years ago

Hey, I guess I found your instructions for optirun, and I was wondering if you tried to use primusrun? optirun seems to be give me the following error:

cat /home/mark/test/share/jupyter/kernels/python3/kernel.json 
{
 "argv": [
  "optirun",
  "python",
  "-m",
  "ipykernel_launcher",
  "-f",
  "{connection_file}"
 ],
 "language": "python",
 "display_name": "Python 3"
}
$ optirun ipython grid.py 
WARNING: This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Reinstalling the application may fix this problem.

changing optirun to primusrun in both places seems to run the application.

However, when I launch

primusrun jupyter qtconsole

then issue

%run app_name

It freezes and can't run the application.

Any clue as to what is going on?

StreakyCobra commented 6 years ago

Hi,

I just tried to use the GPU in tensorflow through optirun and primusrun, none of them are working anymore :( I tried to find a way to solve this but without success for now.

Also, I never used jupyter qtconsole before, so I can not guarantee that is has been working at all in the past.


Here is the setup I tried with:

hmaarrfk commented 6 years ago

Hey thanks for talking it out. It might be growing pains with Wayland. Though, when I tried loging into X11 it wasn't working either.

I realized I had Fedora 27 installed with an old version of the driver. I tried updating the driver, but the new one doesn't really work and froze my system at the login screen. Apparently there is some issue with bbswitch. I reinstalled F27 before I knew that this was a known issue. I'll try to get my system to boot again tonight.

NVidia graphics seemed to be working OK on my desktop, I didn't realize there was so much left to do with switchable graphics.