I am trying to build a JupyterLab extension to add a new Panel to the Left Area. I tried to take inspiration from the celltags extension but I soon realized that it is based on the INotebookTools interface that already provides by itself a Panel with some controls to manage the cell state.
I would like to start from a new blank custom left Panel, where I can add React Components from scratch and do things like setting my own custom icon beside the ones of the file browse, command palette, open tabs panel etc…
Is there any example out there that does something similar? Any advice or help would be very appreciated.
Hey @vidartf thank you for the response! Are you referring to Panel as a pure React component or something else?
I think I am having a hard time understanding the snipped you linked. Would you be so kind to provide a small snippet that initializes an empty left area? I am completely new JupyterLab development, so having something to bootstrap my extension would be really helpful.
@vidartf Thank you very much! That was really helpful. I tried to setup a minimal implementation. It does compile successfully and loads into jupyter, but I do not see any new left panel sadly. And I don’t even see any runtime errors.
This is the code I am using, do you have any suggestion? https://pastebin.com/5mp0xT37
in my package.json. I am pretty sure the base configuration is correct because I started out by cloning the jupyterlab-celltags repository (ended up keeping just the index.js with the code you suggested me)
I also added a couple of console.log in the activate function and I see the output in console. So I guess there is some issue with the widgets…I am pretty much stuck right now, don’t really know what to do