allen-ball / ganymede

The Ganymede Kernel is a Jupyter Notebook Java kernel based on the Java Shell tool, JShell.
Apache License 2.0
61 stars 3 forks source link

Connection file not found in kernelspec json args when starting the Kernel #1

Open estebanwasinger opened 3 years ago

estebanwasinger commented 3 years ago

Hi! I installed the Kernel in Jupyter and when it starts it fails with the following error:

Connection file not found in kernelspec json args, /Users/ewasinger/Library/Java/JavaVirtualMachines/adopt-openjdk-11.0.10/Contents/Home/bin/java
--illegal-access=permit 
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED 
-jar /Users/ewasinger/Library/Jupyter/kernels/ganymede-1.1.0.20210614-java-11/kernel.jar 
--runtime-dir=/Users/ewasinger/Library/Jupyter/runtime 
--connection-file={connection_file}

What I'm missing?

This is my Jupyter installation:

jupyter core     : 4.7.1
jupyter-notebook : 6.4.3
qtconsole        : not installed
ipython          : 7.26.0
ipykernel        : 6.1.0
jupyter client   : 6.1.12
jupyter lab      : 3.1.6
nbconvert        : 6.1.0
ipywidgets       : not installed
nbformat         : 5.1.3
traitlets        : 5.0.5

Thanks in advance!

allen-ball commented 3 years ago

Hi! Thanks for the feedback. Can you tell me more about how you're launching the kernel? A quick search shows the error message and it looks like the launcher is expecting "-f {connection_file}".

Thanks!

allen-ball commented 3 years ago

Added support for "-f {connection_file}" in https://github.com/allen-ball/ganymede/commit/68259ffc46f1166536550ae65f75424603201121.