Open smm9509 opened 1 day ago
Hey @smm9509 thanks for pointing this out. I think we should be able to detect the type of kernel we're operating in and conditionally load this extension / display the button.
Let me take a look into this and see if there's a good fix.
Describe the bug When the kernel of a Jupyter Lab Notebook is set to something other than ipykernel (e.g. xeus-octave or qalc), the purple button "New Mitosheet" still shows, and clicking it adds a cell with code in the wrong syntax for the current kernel.
To Reproduce Steps to reproduce the behavior:
Please include the relevant dataset if the bug you encountered is dataset specific. Make sure to anonymize the data properly.
Expected behavior The purple button "New Mitosheet" is hidden or grayed out when an unsupported Jupyter kernel is selected, and it does not cause problems in the current Notebook.
Screenshots
Desktop:
Additional context