Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Help: Kernel not recognized outside of project directory #4

Open
eitanlees opened this issue May 15, 2023 · 1 comment

Comments

@eitanlees
Copy link

Hey Stefan

First of all, thank you! Your resources have been exceptionally valuable 🙂 ❤️

I am trying to install the ngnk_kernel to play around with k and follow your k book.

I have successfully compiled ngn/k, and ran the installation script for the kernel.

Everything works as expected if I launch Jupyter from the project directory.

If I instead launch Jupyter from another directory then I get the following error and the kernel doesn't work.

Any advice on how to set things up so I can use this kernel independent of where I start Jupyter?

Thank again for all that you do

-Eitan

[I 2023-05-15 15:50:56.192 ServerApp] Creating new notebook in
[I 2023-05-15 15:50:56.494 ServerApp] Kernel started: 58b678b6-38b7-4638-b4db-a72c569c1851
/Users/eitanlees/miniforge3/bin/python: No module named ngnk_kernel
[I 2023-05-15 15:50:59.484 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (1/5), new random ports
/Users/eitanlees/miniforge3/bin/python: No module named ngnk_kernel
[W 2023-05-15 15:51:00.289 ServerApp] 404 GET /api/kernels/9fb80a8b-2067-4eff-bde5-152bea787c72?1684180260277 (::1): Kernel does not exist: 9fb80a8b-2067-4eff-bde5-152bea787c72
[W 2023-05-15 15:51:00.290 ServerApp] wrote error: 'Kernel does not exist: 9fb80a8b-2067-4eff-bde5-152bea787c72'
    Traceback (most recent call last):
      File "/Users/eitanlees/miniforge3/lib/python3.9/site-packages/tornado/web.py", line 1713, in _execute
        result = await result
      File "/Users/eitanlees/miniforge3/lib/python3.9/site-packages/jupyter_server/services/kernels/handlers.py", line 72, in get
        model = await ensure_async(km.kernel_model(kernel_id))
      File "/Users/eitanlees/miniforge3/lib/python3.9/site-packages/jupyter_server/services/kernels/kernelmanager.py", line 496, in kernel_model
        self._check_kernel_id(kernel_id)
      File "/Users/eitanlees/miniforge3/lib/python3.9/site-packages/jupyter_server/services/kernels/kernelmanager.py", line 527, in _check_kernel_id
        raise web.HTTPError(404, "Kernel does not exist: %s" % kernel_id)
    tornado.web.HTTPError: HTTP 404: Not Found (Kernel does not exist: 9fb80a8b-2067-4eff-bde5-152bea787c72)
[W 2023-05-15 15:51:00.292 ServerApp] 404 GET /api/kernels/9fb80a8b-2067-4eff-bde5-152bea787c72?1684180260277 (21bbdf99a89d4fa79b22056eb2675733@::1) 6.33ms referer=http://localhost:8888/lab/workspaces/auto-3/tree/Untitled3.ipynb
@xpqz
Copy link
Owner

xpqz commented May 22, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants