ccsf-math-108 / materials-sp24

Student materials for MATH 108: Foundations of Data Science
https://www.ccsf.edu/math
Creative Commons Zero v1.0 Universal
1 stars 1 forks source link

Keyboard Shortcuts #2

Closed shawnwiggins closed 7 months ago

shawnwiggins commented 7 months ago

A few people were mentioning that the keyboard shortcuts like a and b for adding new code cells were not working. I see that this is an issue with Jupyter Notebooks and it is being talked about on their GitHub issues page. I'll follow their commentary for an update and then implement that fix as soon as there is one. In the meantime, it looks like you might need to add cells without using a shortcut.

futbol4me commented 7 months ago

im finding A, B and DD shortcuts disabled on notebook (on windows and mac) but work when opening via jupyterlab interface

shawnwiggins commented 7 months ago

@futbol4me

im finding A, B and DD shortcuts disabled on notebook (on windows and mac) but work when opening via jupyterlab interface

Yeah, one of the core developers for Notebooks just wrote:

Thanks all for the report.

Wondering if this could be related to the recent JupyterLab 4.1.0 release, which may have introduced some incompatibility with the Notebook settings (in particular the keyboard shortcuts).

As a temporary workaround, does downgrading to the previous JupyterLab version (with pip install "jupyterlab<4.1.0") help fix the issue?

Since Notebooks are built on Lab, it sounds like they will be able to fix the issue soon. I'll keep an eye out for that patch and I'll apply it as soon as it is available. Since JupyterLab 4.1.0 included accessibility improvements, I want to keep using it. (For legal and personal reasons, accessibility goals are higher than the availability of shortcuts.)

shawnwiggins commented 7 months ago

@futbol4me, I made an update based on their recommendation. Will you go to your hub panel, click Stop My Server, wait a few seconds for the screen to change, click Start Server, and then open a notebook to see if they shortcuts are back for you?

shawnwiggins commented 7 months ago

It seems good now.