You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Get a non-python Jupyter kernel (e.g. Xeus Octave, or in my case I'm using my own Qalc Kernel not yet released)
python -m mitosheet hello
open or create a Jupyter Lab Notebook using the browser tab that opens
in the northeast corner, click on "Python 3 (ipykernel)" and select a non-python kernel or a kernel that runs in a python environment without Mito
click the purple button "New Mitosheet"
see the kernel throw errors as it attempts to process code in the wrong programming language.
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:
OS: Windows 11
Browser Firefox
Mito Version mitosheet 0.2.3
Additional context
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: