jupyter / nbformat

Reference implementation of the Jupyter Notebook format
http://nbformat.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
265 stars 152 forks source link

How to get the cell id after creating the cell using JS? #353

Open wenmin-wu opened 1 year ago

wenmin-wu commented 1 year ago

Hi, I use JS to insert a cell below current cell, however the cell.id is not available after creating.

var newCell = Jupyter.notebook.insert_cell_below("markdown");
console.log(newCell.id); #undefined