Open chi-hung opened 8 years ago
Can you post your kernal config json? That error suggests there is an error in parsing that file. Looks like a comma missing.
Here it is. Sorry for the late reply. By the way, in order to see if jshell works, I switched to java9 and typed java -jar kulla.jar in terminal. I find out that the jshell can start and I can do some basic stuffs interactively without problem. So, could it be something wrong between Python and the java kernel?
1 {
2 "argv": ["python3", "/Users/chweng/javakernel",
3 "-f", "{connection_file}"],
4 "display_name": "Java 9",
5 "language": "java"
6 "env" : {
7 "JAVA_9_HOME": "/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home",
8 "KULLA_HOME": "/Users/chweng/kulla/kulla.jar"
9 }
10 }
uh..., you are right. There's a comma missing at line 5. Now, the following is my new kernel config. (I wasn't sure if it is necessary to add the -f {connection file}?)
1 {
2 "argv": ["python3", "/Users/chweng/javakernel"],
3 "display_name": "Java 9",
4 "language": "java",
5 "env" : {
6 "JAVA_9_HOME": "/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home",
7 "KULLA_HOME": "/Users/chweng/kulla/kulla.jar"
8 }
9 }
Anyway, after typing
jupyter console --kernel java
I still get some error messages:
Traceback (most recent call last): File "/usr/local/lib/python3.5/site-packages/jupyter_console/ptshell.py", line 302, in init_kernel_info reply = self.client.get_shell_msg(timeout=1) File "/usr/local/lib/python3.5/site-packages/jupyter_client/client.py", line 77, in get_shell_msg return self.shell_channel.get_msg(_args, *_kwargs) File "/usr/local/lib/python3.5/site-packages/jupyter_client/blocking/channels.py", line 57, in get_msg raise Empty queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/bin/jupyter-console", line 11, in
sys.exit(main()) File "/usr/local/lib/python3.5/site-packages/jupyter_core/application.py", line 267, in launch_instance return super(JupyterApp, cls).launch_instance(argv=argv, _kwargs) File "/usr/local/lib/python3.5/site-packages/traitlets/config/application.py", line 657, in launch_instance app.initialize(argue File " ", line 2, in initialize File "/usr/local/lib/python3.5/site-packages/traitlets/config/application.py", line 87, in catch_config_error return method(app, args, _kwargs) File "/usr/local/lib/python3.5/site-packages/jupyter_console/app.py", line 137, in initialize self.init_shell() File "/usr/local/lib/python3.5/site-packages/jupyter_console/app.py", line 110, in init_shell client=self.kernel_client, File "/usr/local/lib/python3.5/site-packages/traitlets/config/configurable.py", line 412, in instance inst = cls(_args, _kwargs) File "/usr/local/lib/python3.5/site-packages/jupyter_console/ptshell.py", line 251, in init self.init_kernel_info() File "/usr/local/lib/python3.5/site-packages/jupyter_console/ptshell.py", line 305, in init_kernel_info raise RuntimeError("Kernel didn't respond to kernel_info_request") RuntimeError: Kernel didn't respond to kernel_info_request)
It appeared that the kernel died somehow?
Yeah, I think the kernel is broken. Not sure why. Im thinking something changes in ipython but I am not likely going to be able to look into this for a while
After excuting:
I've got the following error messages. Something wrong?