Problem Python using Atom editor with addon Hydrogen

General support questions
FranekW
Posts: 24
Joined: 2017/05/11 21:19:21

Problem Python using Atom editor with addon Hydrogen

Postby FranekW » 2017/09/13 14:14:58

I usually code in Python and use both Spyder and Atom editors. Python 3 is currently installed in separate custom folder via Anacoda package manager because I did not want to mess with default Python 2.7 installed in the system. Atom editor is installed from custom rpm.

For some reason, Atom has to be run from command line to maintain environmental variables and this is in order for Hydrogen package to work. Hydrogen uses jupyter (ipython) kernels and ZeroMQ protocol to communicate with the kernels to run script inside Atom. When I run Atom from desktop icon, Hydrogen cannot find jupyter and its kernels.

Is there any way I can create a .desktop file to run Atom from desktop but also I could create the same environment as if I run terminal and "copy" environmental variables for Hydrogen to work?

Thanks

FranekW
Posts: 24
Joined: 2017/05/11 21:19:21

Re: Problem Python using Atom editor with addon Hydrogen

Postby FranekW » 2017/09/14 09:48:25

I think I found something. Based on similar problem, in a *.desktop file I changed the 'Exec' line from:

Code: Select all

Exec=/user ... /atom %F


to

Code: Select all

Exec=gnome-editor -e '/usr/ ... /atom %F'


I also added the line 'Terminal=False'. It seems to work for now.