# Issue with ipykernel

**URL:** <https://forum.cursor.com/t/issue-with-ipykernel/2043>\
**Category:** Bug Reports\
**Created:** [December 11, 2023, 6:43pm UTC](https://forum.cursor.com/t/issue-with-ipykernel/2043 "2023-12-11T18:43:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin6](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevin6/32/4907_2.png) [@kevin6](https://forum.cursor.com/u/kevin6)\
**Post date:** [December 11, 2023, 6:43pm UTC](https://forum.cursor.com/t/issue-with-ipykernel/2043/1 "2023-12-11T18:43:17Z")

</div>

It appears that there is a persistent issue with the Jupyter environment that is preventing the installation of the ipykernel package. Unfortunately, without resolving this issue, we won’t be able to execute code in the Jupyter notebook.

 ![Screen Shot 2023-12-11 at 7.37.35 PM](https://us1.discourse-cdn.com/cursor1/original/1X/81627dd4dba252093b0868ee348fa6f40b639f1b.png)

---

<div class="post-metadata">

**Author:** ![kevin6](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevin6/32/4907_2.png) [@kevin6](https://forum.cursor.com/u/kevin6)\
**Post date:** [December 11, 2023, 6:44pm UTC](https://forum.cursor.com/t/issue-with-ipykernel/2043/2 "2023-12-11T18:44:53Z")

</div>

I already have installed ipykernel, tried different env and reinstall but nothing did worked.

---

<div class="post-metadata">

**Author:** ![arvid220u](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/arvid220u/32/82089_2.png) [@arvid220u](https://forum.cursor.com/u/arvid220u)\
**Post date:** [December 14, 2023, 7:11pm UTC](https://forum.cursor.com/t/issue-with-ipykernel/2043/3 "2023-12-14T19:11:38Z")

</div>

Hi! We’re currently just choosing an arbitrary kernel for the interpreter mode, but hope to support selecting the right kernel later in case people enjoy using it!

---

<div class="post-metadata">

**Author:** ![Ronan](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@Ronan](https://forum.cursor.com/u/Ronan)\
**Post date:** [December 21, 2023, 1:43pm UTC](https://forum.cursor.com/t/issue-with-ipykernel/2043/4 "2023-12-21T13:43:23Z")

</div>

i bumped into same issue.  
I tried to configure interpreter in Workspace and User settings.

In the Jupyter Output I see proper interpreter is defined:  
`4:02:29.487 [info] Process Execution: ~/.venvs/env-dev/bin/python3 -m pip list`  
But when it tries to use the interpreter notebook it fails:

```auto
4:02:49.025 [info] Starting Kernel startUsingPythonInterpreter, .jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1./bin/python3./bin/python3.-m#ipykernel_launcher (Python Path: /bin/python3, Unknown, 3.11.2) for '~/.cursor/interpreter-notebooks/2023-12-21T12_15_47.997Z-3af95335-61f1-4a7d-bdbb-cdbebf2c896a.ipynb' (disableUI=false)

14:02:49.076 [warn] Failed to get activated env vars for /bin/python3 in 52ms

14:02:49.106 [info] Process Execution: /bin/python3 -c "import site;print("USER_BASE_VALUE");print(site.USER_BASE);print

```

The “change kernel” menu won’t let me actually change the kernel.  
I get error:  
`14:13:12.695 [error] Unable to select kernel as the Notebook document could not be identified`

Tried to hack the notebook file to define a kernel. Not the easy…

Finally I could find a dirty hack… i rename /bin/python3 to /bin/python3.old

---

<div class="post-metadata">

**Author:** ![wfz65ymr](https://avatars.discourse-cdn.com/v4/letter/w/c5a1d2/32.png) [@wfz65ymr](https://forum.cursor.com/u/wfz65ymr)\
**Post date:** [January 23, 2024, 3:34pm UTC](https://forum.cursor.com/t/issue-with-ipykernel/2043/5 "2024-01-23T15:34:08Z")

</div>

has this been resolved? still see

“name”: “”,  
“message”: “”,  
“stack”: “Running cells with ‘/nix/store/…-python3-3.10.12/bin/python’ requires the ipykernel package.\nRun the following command to install ‘ipykernel’ into the Python environment. \nCommand: ‘/nix/store/…-python3-3.10.12/bin/python -m pip install ipykernel -U --user --force-reinstall’”  
}
