Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 3 - Jupyter interaction via Hermes

Using Sublime Text 3 for quite some time for Python I found Hermes to let ST3 interact with Jupyter. The installation via Package Control worked but now I have problems to connect to a kernel. Searching the web for some time I found so far only little help on the setup of Hermes and almost nothing on its usage.

I am using an Anaconda installation (Python 3) only for me (i.e. into /Users/the_user/anaconda3) on macOS 10.13.6. The documentation of Hermes states that Jupyter might not find a kernel installed via Conda. So I entered the path (/Users/the_user/anaconda3/share/jupyter/kernels) to the Jupyter kernel into the user configuration file of Hermes. Furthermore, I made the path know to the system.

Now, using the "basic way" to connect to start a kernel via Hermes: connect kernel and then New kernel nothing was shown.

  • Was I supposed to see a list of available kernels?

Reading the error message I entered the path to the json file in kernels/python3/ Somehow, a connection was established but the options mention in the section Execution of the Hermes documentation were not available.

Seems like I am missing something.

  • So, how do I have to configure Hermes?
  • Are there a little more elaborate documentations out there on the setup and usage of Hermes?

Thanks a lot.

like image 247
Eckhard Giere Avatar asked Aug 15 '18 08:08

Eckhard Giere


1 Answers

Well, I found a solution that at least solved my problem.

Since there is a similar package called Hydrogen for the editor Atom, as mentioned on the website for Hermes I looked into that and finally found the following post.

As described there the command issued in my case in the Terminal

python -m ipykernel install --user

solves my problem.

So I answer myself and hope it helps others, too.

like image 107
Eckhard Giere Avatar answered Sep 24 '22 00:09

Eckhard Giere