I’ve been working on refactoring an extension that was originally written for JupyterLab 3.6, with the goal of making it compatible with JupyterLab 4. However, I’ve run into some issues with certain methods that were previously used in JupyterLab 3.6. Specifically, I’m struggling to find analogous methods for the following operations in JupyterLab 4:
notebookPanel.content.model.initialize();
notebookPanel.content.model.cells.insert(0, cell);
notebookPanel.content.model.cells.removeRange(1, notebookPanel.content.model.cells.length);
I’ve searched through the changelog and the JupyterLab 4 documentation, but I couldn’t find clear replacements or alternatives for these methods.
Has anyone else encountered similar issues while upgrading extensions to JupyterLab 4? If so, could you please share your insights and solutions? Any guidance, code examples, or documentation links would be greatly appreciated.