jupyterlab-desktop icon indicating copy to clipboard operation
jupyterlab-desktop copied to clipboard

Broken "View"->"Reload" menu item and accompanying shortcut (⌘R on macOS)

Open will-henney opened this issue 3 years ago • 4 comments

Description

If I type ⌘R in a notebook, then I get an error:

404 : Not Found You are requesting a page that does not exist!

and the app is completely broken (need to quit and relaunch to recover) CleanShot 2021-10-07 at 10 59 04@2x

Here is the console output from the developer tools:

CleanShot 2021-10-07 at 11 01 59@2x

Reproduce

  1. Open a notebook
  2. Choose "View"->"Reload" from the top-level app menu bar or type ⌘R
  3. See error "404 : Not Found"

Expected behavior

I would expect ⌘R to behave as in the jupyterlab web app in a browser, which is to reload all notebooks from disk. There is an item "File"->"Reload Notebook from Disk" in the internal menu bar that does this for a single notebook. This works fine, but it has no default key binding.

Context

  • Operating System and version: macOS Big Sur 11.5.2 - MacBook Pro (16-inch, 2019)
  • Browser and version: Desktop app
  • JupyterLab version: Version 3.1.13-1 (3.1.13-1)

will-henney avatar Oct 07 '21 18:10 will-henney

I don't see View → Reload:

Screenshot from 2021-10-07 19-04-56

Is this something specific to the Mac version? I also saw someone mentioning "About jupyterlab_app" which I don't see on Ubuntu either.

krassowski avatar Oct 07 '21 18:10 krassowski

Apologies if I was not clear. I mean the top-level app menus - not the menus inside the web view. I do not know if this is mac-specific or not

CleanShot 2021-10-07 at 13 35 08@2x

will-henney avatar Oct 07 '21 18:10 will-henney

@will-henney View -> Reload menu functionality is not implemented and will most likely be removed in future versions. Unfortunately the default implementation is causing the error message you are seeing. What is your use case of reloading the application window? was there a state issue you tried to fix with reloading?

mbektas avatar Nov 09 '21 03:11 mbektas

See issues #379 and my comments in #269

I needed this kind of refresh in order to get the pre-built extension jupyterlab-vim to work.

Since the last version I noticed that refresh was very quick, i.e. it did not happen. And so I cannot do vim in notebook cells.

So my hope is that either refresh gets re-instated, or another way to get vim in notebook cells is found.

dirkroorda avatar Dec 21 '21 20:12 dirkroorda

@dirkroorda could you test with the latest? 3.6.1-1. are you still having issues with jupyterlab-vim?

mbektas avatar Feb 22 '23 04:02 mbektas

closing since no response for a long time

mbektas avatar Apr 26 '23 03:04 mbektas