ipython-contrib / jupyter_contrib_nbextensions

A collection of various notebook extensions for Jupyter
http://jupyter-contrib-nbextensions.readthedocs.io/en/latest
Other
5.22k stars 806 forks source link

splitcell and cell copy/paste #1485

Open parmentelat opened 4 years ago

parmentelat commented 4 years ago

when using standard jupyter classic notebook commands (command-c command-v) to copy and paste a cell that is tagged as split, the duplicated cell does not show up as split

it appears that the duplicated cell is properly configured with cell_style=split but it still ends up displayed as a regular cell my obvious conjecture is that update_cell_style_element() does not get called in that scenario

as a consequence a user needs to further toggle split-cell that cell twice, in order to see it properly displayed

parmentelat commented 4 years ago

as a follow-up, the same kind of mishap occurs when changing the cell type (code to markdown, or the other way around) on a cell marked as split the cell gets redisplayed in full width although the metadata properly says it is split
to get a correct display in this case, one also needs to toggle split-cell that cell twice