Coconut Jupyter notebooks cannot execute
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
Recently, I am unable to run coconut code in new or existing Jupyter notebooks. Things were working about a month or so ago with the same command to invoke Jupyter (though probably the versions changed in between).
## Steps to reproduce
```
uv tool run --with coconut jupyter lab
```
In my setup this runs:
Python 3.14.6
Jupyterlab 4.6.0
Jupyter Server 2.2.0
Try creating a notebook with the coconut kernel and any code (I just did a `print('test')`, and the execution will never complete.
In the Jupyter command's output:
```
[IPKernelApp] ERROR | Exception in message handler:
Traceback (most recent call last):
File "/Users/anna/.cache/uv/archive-v0/fpzveztmLVbWtk3m/lib/python3.14/site-packages/ipykernel/kernelbase.py", line 478, in dispatch_shell
await result
File "/Users/anna/.cache/uv/archive-v0/fpzveztmLVbWtk3m/lib/python3.14/site-packages/ipykernel/ipkernel.py", line 372, in execute_request
await super().execute_request(stream, ident, parent)
File "/Users/anna/.cache/uv/archive-v0/fpzveztmLVbWtk3m/lib/python3.14/site-packages/ipykernel/kernelbase.py", line 834, in execute_request
reply_content = await reply_content
^^^^^^^^^^^^^^^^^^^
File "/Users/anna/.cache/uv/archive-v0/fpzveztmLVbWtk3m/lib/python3.14/site-packages/ipykernel/ipkernel.py", line 460, in do_execute
res = shell.run_cell(
code, store_history=store_history, silent=silent, **do_execute_args
)
File "", line 20, in run_cell
File "/Users/anna/.cache/uv/archive-v0/fpzveztmLVbWtk3m/lib/python3.14/site-packages/ipykernel/zmqshell.py", line 665, in run_cell
return super().run_cell(*args, **kwargs)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
TypeError: InteractiveShell.run_cell() got an unexpected keyword argument 'cell_meta'
```
Interesting that earlier in the output is this:
```
Adapting from protocol version 5.3 (kernel ...) to 5.4 (client).
```
Not sure if that's related at all?
This also fails with the same TypeError if I try a Coconut console within Jupyter instead of a notebook.
Contributor guide
Research direction
Reproduce the failure with `uv tool run --with coconut jupyter lab`, then inspect Coconut’s Jupyter kernel and console integration alongside the reported `ipykernel` traceback involving `InteractiveShell.run_cell` and `cell_meta`. Done means a Coconut notebook and Coconut console execute code successfully without the TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter, jupyter-notebook, python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100