ipykernel icon indicating copy to clipboard operation
ipykernel copied to clipboard

cell_id unexpected argument in a notebook extension.

Open PBrockmann opened this issue 1 year ago • 1 comments

Hi,

I have updated python to 3.9.13 and then my IPython notebook extension does not work anymore. I get this error

  File "/opt/anaconda3/lib/python3.9/site-packages/ipykernel/kernelbase.py", line 406, in dispatch_shell
    await result
  File "/opt/anaconda3/lib/python3.9/site-packages/ipykernel/kernelbase.py", line 730, in execute_request
    reply_content = await reply_content
  File "/opt/anaconda3/lib/python3.9/site-packages/ipykernel/ipkernel.py", line 383, in do_execute
    res = shell.run_cell(
  File "/opt/anaconda3/lib/python3.9/site-packages/ipykernel/zmqshell.py", line 528, in run_cell
    return super().run_cell(*args, **kwargs)
TypeError: run_cell_new() got an unexpected keyword argument 'cell_id'

Any idea what I should adapt to get it operationnal again ? I have inspected the ipkernel.py code and have noticed that a cell_id argument has been set to None. That should be enough to insure backward compatibility, but it seems not ?

The code is available from: https://github.com/PBrockmann/ipython_ferretmagic/blob/master/ferretmagic/ferretmagic.py

Issue described in https://github.com/PBrockmann/ipython_ferretmagic/issues/12

PBrockmann avatar Jul 28 '22 16:07 PBrockmann

My ferret juyter extension works with 6.9.2 release of ipykernel

PBrockmann avatar Jul 29 '22 14:07 PBrockmann

Fixed by adding cell_id=None in the run_cell function. https://github.com/PBrockmann/ipython_ferretmagic/issues/12 closed.

PBrockmann avatar Aug 25 '22 14:08 PBrockmann