jupyter-c-kernel icon indicating copy to clipboard operation
jupyter-c-kernel copied to clipboard

!install_c_kernel

Open GeneralHawking18 opened this issue 4 years ago • 4 comments

Implementation !install_c_kernel in windows 11 with my notebook resulted in this problem:

'install_c_kernel' is not recognized as an internal or external command, operable program or batch file.

Anyone have solution? Please help me! Thanks a lot!

GeneralHawking18 avatar Oct 14 '21 14:10 GeneralHawking18

Disclaimer: I'm not a developer of this software, so my answer might be wrong.

The readme says Works only on Linux and OS X. Windows is not supported yet. If you want to use this project on Windows, please use Docker., so I imagine you're mostly on your own when it comes to getting it to work. I suggest you try and use docker, but I'm afraid I can't help further there.

As to install_c_kernel: this is a python script. On linux, it's available both in .local/bin/, and wherever pip installed jupyter-c-kernel. You can find the latter with the command pip show jupyter-c-kernel. It might work for you to go into that folder and try to run it.

vlipiainen avatar Oct 25 '21 08:10 vlipiainen

Tks for replying my question. i will try it

GeneralHawking18 avatar Nov 12 '21 12:11 GeneralHawking18

it will install on windows as you've mentioned above. the next step is to get the stdout/stderr of the ran process to be messaged back to jupyter.

jameswdelancey avatar Aug 06 '22 19:08 jameswdelancey

Jupyter C Kernel is NOT supported on Windows because of these reasons:

  • gcc is not fully supported on Windows. The closest version of gcc for Windows by MinGW is missing dlfcn.h - which is the header that helps the compiler show the result in Jupyter Notebook/ Jupyter Lab
  • install_cpp_kernel is the Python file, that runs perfectly on Linux.

If you want to run a C program on Jupyter for Windows, try C++ kernel for Jupyter. Although its target is for C++, but you still can use C here. However, you've to install GCC before installing on Windows.

image

shiroinekotfs avatar Aug 09 '23 05:08 shiroinekotfs